Event JSON
{
"id": "001e5726b892c4968ffc708ee296ad6353bf57c00cba84e54aa23fe6b9741d1b",
"pubkey": "8e6ccedaf1b1240157c350716b2269af4f72a37bd961b77297ef92010dba371c",
"created_at": 1724189960,
"kind": 1,
"tags": [
[
"p",
"51981c0b18eca1d7807902dd2fbda98adc729c8e7221a523d945da265b375a9c"
],
[
"proxy",
"https://emacs.ch/@olav/112996513280175417",
"web"
],
[
"e",
"b173ca2444ad4ced3cb896ef88d92cbe7b9f2ae54c1b96ce6851611b188d72df",
"",
"root",
"51981c0b18eca1d7807902dd2fbda98adc729c8e7221a523d945da265b375a9c"
],
[
"p",
"8e6ccedaf1b1240157c350716b2269af4f72a37bd961b77297ef92010dba371c"
],
[
"proxy",
"https://emacs.ch/users/olav/statuses/112996513280175417",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://emacs.ch/users/olav/statuses/112996513280175417",
"pink.momostr"
],
[
"-"
]
],
"content": "Start by getting a feel for transducers by doing regular sequence processing, e.g (into [] (map inc) [1 2 3 4]), (into [] (comp (map inc) (filter even?)) [1 2 3 4]) and things like that.\n\nThen try implementing the basic transducer functions like map, filter etc. take is an interesting one, as it's stateful and terminates itself, via the reduced mechanism. \n\nI'd drop implementing the context transducers yourself, it's very complicated for reasons orthogonal to transducers. There's nothing particularly interesting about the implementation of no.olavfosse.context, aside from how well it encapsulates the complexity.\n\nPlease do try them out though!\n\nTransducers are really simple, but took me a long time to really grok.\n\nJust give them some time and I'm sure they'll find their place in your mind.",
"sig": "efe443602551b224c5afe418ddf69222d6f245c62a621b784e64f03d4cdd359fcf82b2aef1267c560ddaf2c1328bba7f963f8ba7156aad6f26dc8fdb5936a640"
}