33 ms·
> Is that not what generics would fix? No. That would be fixed by having something akin to typeclasses, traits or interfaces. Elm's List, Maybe and Array are
by sdfsfsf3kjdf 6y ago
> Is that not what generics would fix?
No. That would be fixed by having something akin to typeclasses, traits or interfaces.
Elm's List, Maybe and Array are all defined using a generic type parameter.