21:54:25White_Flameor reduce + push inside the handler?
21:54:25moon-childthat's a prefix scan, which is a variant of reduce. I don't know of a specific implementation strategy, but you can use that keyword to search for one
21:54:54White_Flamebut loop's COLLECT makes a lot of things easier
22:03:13White_Flamepff, accumulator in a closure? not clever enough!
22:04:11edgar-rftbut code that I still can understand at the first read in hundred years from now...
22:48:30jcowanmoon-child: No. The main difference is that you fold using a plain function and you reduce using a monoid.
22:49:48jcowanIn a monoid, you always statically know the start value, instead of it being passed to the fold: thus the normal + monoid returns 0 if applied to zero arguments. Third, fold can be done in parallel because a monoid is guaranteed to be associative.
5:12:01kami_I'm trying to create a struct with function pointers for a foreign lib with cffi
5:12:18kami_But seem to mess up: https://pastebin.com/M3i27bAP
5:16:58kami_I'm trying to 'translate' this code: https://github.com/metacall/core/blob/develop/source/tests/metacall_node_test/source/metacall_node_test.cpp#L78
5:17:48beachWhat prevents you from using Common Lisp for all your code?
5:19:52kami_I'm creating a server where people have the option to provide their own functions as hooks into the standard processing of some resources