import strutils{split, trim}
What would be the problem with that?
from strutils import split, trim
"foo-bar" |> String.split("-")
The functional approach requires currying and data-last parameter order, which are both unidiomatic in Nim.
How is it possible, then, to call a function that lives in a different namespace as part of a dot-chain of methods?
The Elixir approach does not rely on currying; like much of the language's fancy parts, it's a macro.
I didn't even know Elixir had macros…