there is a proposal to add it to javascript too: 
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Pipeline_operator

On Wed, Mar 10, 2021 at 03:28:12AM +0800, Tim Lee wrote:
> > Using *fluent*, the same racket code can be written according to the UNIX 
> > philosophy:
> > 
> >     ("data.txt" > file->lines >> filter (line : line > string-contains? 
> > "active") >> map (line : line > string-split > list-ref 4) > 
> > remove-duplicates > sort)
> 
> This reminds me of Clojure's threading macros (->, ->>, etc.), and
> OCaml's "reverse-application operator": "|>", where x |> f |> g is
> equivalent to (g (f x)). The tacking-on of such convenience
> functions/syntax across so many functional languages is probably a sign that
> many of these languages have it backwards (from a user-friendliness point of
> view).

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/sigid.070384d75a.20210310134136.GC3081%40papaya.papaya.

Reply via email to