Define map, filter, ... also as functionals

Because that already has a meaning, so changing that would be breaking:

julia> foo() = println("hello")
foo (generic function with 1 method)

julia> map(foo)
hello

If you’re wondering how you can reach that, you can splat an empty container:

julia> map(foo, []...)
hello
6 Likes