Skip to content

tkf/Mathy.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A math-y notation for map-filter-reduce

Dev Build Status Codecov Coveralls

Mathy.jl is a math-like DSL for broadcasting expressions and Transducers.jl:

julia> @$ + { (1:10) .^ 2 | (_ + 2) % 3 == 0 }
259

This is equivalent to

mapfoldl(Map(x -> x^2) |> Filter(x -> (x + 2) % 3 == 0), +, 1:10)

Of course, you can make it more mathy by using a proper symbol:

julia>= +;

julia> @$ ∑ { (1:10) .^ 2 | (_ + 2) % 3 == 0 }
259

See more in documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages