3 ms·
The function syntax I like even more is one with implicit arguments so you don’t have to name them, e.g. waiting = sum workers #(%.in_queue + %.in_flight) C
by dan-robertson 4y ago
The function syntax I like even more is one with implicit arguments so you don’t have to name them, e.g.
waiting = sum workers #(%.in_queue + %.in_flight)
Clojure has some syntax like this though it isn’t needed for the most obvious use-case of functions to extract fields because keywords, which are usually used for map keys, are implicitly functions that look themselves up in their arg, e.g.
(:bar { :foo 3, :bar 2 }) ; => 2