3 ms·
That new Rhombus language that was featured here recently has an interesting feature where you can use `_` in a function call to act as a "placeholder" for an a
by true_blue 1y ago
That new Rhombus language that was featured here recently has an interesting feature where you can use `_` in a function call to act as a "placeholder" for an argument. Essentially it's an easy way to partially apply a function. This works very well with piping because it allows you to pipe into any argument of a function (including optional arguments iirc) rather than just the first like many pipe implementations have. It seems really cool!
- gdw2 1y agoSounds like Clojure's as-> macro (https://clojuredocs.org/clojure.core/as-%3E https://clojuredocs.org/clojure.core/as-%3E).