jb55 on Nostr: isnt this just: doTimes f n x = foldl’ (\acc _ -> f acc) x [1..n]
isnt this just:
doTimes f n x = foldl’ (\acc _ -> f acc) x [1..n]
Published at
2024-12-12 03:42:17Event JSON
{
"id": "7c63a2f4649f666919dcd53bef5988d62df478ac46d965a4021ee148dcee41b9",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1733974937,
"kind": 1,
"tags": [
[
"e",
"0c63aafaf7ad4b02b6e9fb928a0ec086f5a40054623842aefbb0526815a80b20",
"",
"root"
],
[
"p",
"eebd14d82c7521a8a88dc84281fb4f1441ac71d0241f4e0dfa3f5058a1a076b0"
]
],
"content": "isnt this just:\n\ndoTimes f n x = foldl’ (\\acc _ -\u003e f acc) x [1..n]",
"sig": "f36e512281fd129083bd39b1655b727b5d0f52a2fc15285fda7e706d155b12f111ef692fd383244f93418525d104f8ff5e7cdcf5eccc30bb40dcb1139538576d"
}