bopjesvla

bopjesvla OP

Mhmm, you’d have to rewrite Enum.map(l, f) to enum_map_2.(l, f) and &Enum.map/2 to enum_map_2. You’d have to check the left-hand side of the dot at compile time, so some valid Elixir code wouldn’t work:

e = Enum
e.map(l, f)

But that’s rarely used anyway. Seems possible, but there might be some issues I haven’t considered.

0
Post #11
— All posts loaded —