by JoachimS · 3y ago · 0 comments
Although the creator demonstrates this with `*` and `+` I could imagine this being useful within a set of higher level operators (functions)
eg. perhaps you want an argument of (infix) `map` to evaluate before `map` itself
Or more generally, you might have a bunch of scalar operators which you'd like to have higher precedence than collection operators which should act on the results
Or I'm probably missing something.
Being able to customise how they compose (through precedence) lets you build a kind of DSL for your problem space
No idea how often that would be used - but I can imagine hobby scenarios