| ▲ | lpil 12 hours ago | |||||||
Yes, one would use higher order functions, as is common in Erlang, Elixir, OCaml, Elm, etc. | ||||||||
| ▲ | shirogane86x 5 hours ago | parent [-] | |||||||
At least half of those languages (Elixir and OCaml) have some sort of mechanism for ad hoc polymorphism (elixir has behaviors and protocols, OCaml has higher order modules) so I feel like the comparison doesn't work that well personally | ||||||||
| ||||||||