2 ms·
Define "a lot of work." In Haskell you need to define a type and implement two classes (IsList and Num). Then you will have the ability to use [1,2,3] * 4 and
by thesz 3y ago
Define "a lot of work."
In Haskell you need to define a type and implement two classes (IsList and Num). Then you will have the ability to use [1,2,3] * 4 and get your [4,8,12].
Is it a lot of work? It does not seem like that for me.