Reverse application operator
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?
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.