Timeline for Integer Lists of Noah
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 8, 2019 at 13:52 | history | edited | J. Sallé | CC BY-SA 4.0 |
added 96 characters in body
|
Jul 8, 2019 at 13:49 | comment | added | nimi |
... oh and for future use: all(True==) is and .
|
|
Jul 8, 2019 at 13:49 | comment | added | J. Sallé |
Indeed, I overlooked the all(2==) when I was testing in GHCi. Thanks Kevin and Nimi, I'll update the answer.
|
|
Jul 8, 2019 at 13:47 | comment | added | nimi |
... and move length to all : all((2==).length).group.sort . No need to give the function a name, i.e. drop the f= .
|
|
Jul 8, 2019 at 13:45 | comment | added | Kevin Cruijssen |
I don't know Haskell, but I'm pretty sure all(True==).map(2==) can be all(2==) . :)
|
|
Jul 8, 2019 at 13:40 | history | answered | J. Sallé | CC BY-SA 4.0 |