On Wednesday, December 18, 2013 8:06:33 AM UTC-6, Patrick O'Leary wrote:
>
> ...
>
 

> julia> feval(funs, x) = foldl(|>, {x; funs...})
> feval (generic function with 2 methods)
>
> julia> feval([f g], 3)
> 20.0
>

And the single-function case is just an alias of `apply`:

julia> feval(fun::Function, x) = apply(fun, x)
feval (generic function with 3 methods)

julia> feval(f, 3)
8

Patrick

Reply via email to