[Haskell-cafe] Newbie question

Jerzy Karczmarczuk jerzy.karczmarczuk at unicaen.fr
Sat Jan 15 14:54:06 UTC 2022

Le 15/01/2022 à 15:43, Brandon Allbery a écrit :
> You've covered 0 elements, 1 element, 3 or more elements, but not 2 elements.

No, [1,2] === 1:(2:[])

But my own answer was incomplete. I suspect that there is a confusion 
because T.P. might hava a conflict between tha Prelude last and his own...

Anyway, skip this : last [] = []  and change the name "last" to a 
private one.

Jerzy Karczmarczuk

L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.

More information about the Haskell-Cafe mailing list