3 ms·
Why not make one for yourself? ;) julia> (∘)(f, g) = x -> f(g(x)) ∘ (generic function with 1 method) julia> (sum ∘ rand)(10) 3.397728240035534 Tip: type \c
by g0wda 11y ago
Why not make one for yourself? ;)
julia> (∘)(f, g) = x -> f(g(x))
∘ (generic function with 1 method)
julia> (sum ∘ rand)(10)
3.397728240035534
Tip: type \circ<tab> to get ∘
- PeCaN 11y agoI know, but why isn't something like this in core? * did function composition a while ago, but it was removed (beats me why) and hasn't been replaced. Enough Perl6 has left me with <compose>(.) to get ∘ :-)
- CyberDildonics 11y agoGet involved then, Julia isn't exactly the illuminate.