Timeline for I'm a palindrome. Are you?
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 5, 2023 at 16:52 | comment | added | 0xff |
f=reverse>>=(==) works too for the same reasoning and the Monad ((->) r) instance which looks like f >>= g = \x -> g (f x) x and is essentially flipping the arguments of the combining function
|
|
Feb 22, 2017 at 3:11 | comment | added | Program man | Nice thinking! Applicative is still weird to me... | |
Feb 22, 2017 at 3:10 | history | edited | Program man | CC BY-SA 3.0 |
deleted 412 characters in body
|
Feb 22, 2017 at 2:36 | comment | added | faubi |
You can save 10 bytes by using <*> instead of <$> and removing the <*>id
|
|
Feb 21, 2017 at 22:08 | comment | added | tbodt |
@Yakk It's some sort of combination of the (==) , reverse , and id functions (id is the identity function).
|
|
Feb 21, 2017 at 18:41 | comment | added | Yakk | @theonlygusti Haskell is sufficiently alien that that only half helps. | |
Feb 20, 2017 at 9:05 | comment | added | user36219 |
@bli everything after the -- is a comment.
|
|
Feb 20, 2017 at 6:48 | comment | added | bli | Can you explain the code? | |
Feb 20, 2017 at 4:44 | history | edited | Program man | CC BY-SA 3.0 |
deleted 2 characters in body
|
Feb 20, 2017 at 4:39 | history | edited | Program man | CC BY-SA 3.0 |
deleted 228 characters in body
|
Feb 20, 2017 at 4:32 | history | answered | Program man | CC BY-SA 3.0 |