func icon indicating copy to clipboard operation
func copied to clipboard

Reverse application operator

Open esad opened this issue 5 years ago • 1 comments

OCaml includes the reverse function operator (|>) which I've often found more readable than function composition + application. Have you consider adding such operator to func?

esad avatar Jun 24 '19 15:06 esad

OCaml includes the reverse function operator (|>) which I've often found more readable than function composition + application. Have you consider adding such operator to func?

That's a good suggestion. Haskell has the & operator (in Data.Function), and of course shell has |. They all serve a useful purpose.

I'm not using Prolog these days, so I haven't been maintaining func. If someone interested in maintaining it comes along, I think that a reverse application operator would be a great addition to the library.

mndrix avatar Jun 24 '19 17:06 mndrix