> 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/20210309192812.tuzlvaqaspsdqjiz%40home-guest.