graywolf on Nostr: Multiple times already I saw a code like (filter-map identity some-list). I wonder, ...
Multiple times already I saw a code like (filter-map identity some-list). I wonder, is there a reason to prefer it over (filter identity some-list)? My understanding is that they should do the exact same thing, with one being shorter to write. Is that correct?
#guile #srfi #srfi1
Published at
2024-07-15 15:11:53Event JSON
{
"id": "cc7ea5c1b30e3d4f1cae667c0d7f4f12481a9691992821758d8cdc46742a9730",
"pubkey": "9e5231bb994c213b4b5bc1d12b01260bc4a8238b77b38f81d1bd270d037e47a5",
"created_at": 1721056313,
"kind": 1,
"tags": [
[
"t",
"guile"
],
[
"t",
"srfi"
],
[
"t",
"srfi1"
],
[
"proxy",
"https://emacs.ch/users/graywolf/statuses/112791146530551474",
"activitypub"
]
],
"content": "Multiple times already I saw a code like (filter-map identity some-list). I wonder, is there a reason to prefer it over (filter identity some-list)? My understanding is that they should do the exact same thing, with one being shorter to write. Is that correct?\n\n#guile #srfi #srfi1",
"sig": "6e095dcb1e3b50bac6680844bef7814c20f65346992a45b5b478f79c1ab89375bb4214afdac07a657cada45bd9a524b1b0f683d130a7035951a1c2404e7dd3e7"
}