Jencel Panic on Nostr: "Oh, in #Haskell this app is just a one-liner!" The one-liner: `app a b c d e= ...
"Oh, in #Haskell this app is just a one-liner!"
The one-liner:
`app a b c d e= runMonadT <(@)> ( (LiftValue a b c) *!* stop) . \a -> d(a) $ e`
#functionalprogramming
Published at
2023-11-19 14:46:38Event JSON
{
"id": "2cac4824a4a322c812f79aaeee4d7545f6570408397c7b3b30cf88a6d68af18f",
"pubkey": "83978da5c7975c8305202f135d745f770b4a9ae168720a3679bacca491ae3bab",
"created_at": 1700405198,
"kind": 1,
"tags": [
[
"t",
"functionalprogramming"
],
[
"t",
"haskell"
],
[
"proxy",
"https://mathstodon.xyz/users/abuseofnotation/statuses/111437755079046075",
"activitypub"
]
],
"content": "\"Oh, in #Haskell this app is just a one-liner!\"\n\nThe one-liner:\n\n`app a b c d e= runMonadT \u003c(@)\u003e ( (LiftValue a b c) *!* stop) . \\a -\u003e d(a) $ e`\n\n#functionalprogramming",
"sig": "79ca0272eccb2b435143556e8dad8f898ace3fe7709e30aec3b5ab4f24753e72f6254040088d0b2338f93c852224172a33365a5d6a2feff61d730bc6066c366b"
}