Not() functional composition

Hi, all!
How about add to Julia simple function not() ?

Sample:

not(f::Function) = (args…)->!f(args…)

julia> filter(isempty , [“”,“asd”,“”,“too”] )
2-element Array{String,1}:
“”
“”

julia> filter( not(isempty) , [“”,“asd”,“”,“too”] )
2-element Array{String,1}:
“asd”
“too”

See this pull request.

2 Likes