I'm doing Advent of Code this year to learn Q. For bewildering one-liners, you can follow along here:https://github.com/willcrichton/aoc2021 …
-
-
Using fold instead of for-loop is annoying. But one benefit: flip a character to unroll the state of the fold. q) ((); 0) check/ "()({)" "({" 3 q) ((); 0) check\ "()({)" ,"(" 0 "" 0 ,"(" 0 "({" 0 "({" 3
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
f/ (unary) is bottom-up fixed point iteration, which is cool! But how is it analogous to f/ (binary)? That, I don't see...
-
My guess: both are about iteratively computing on an element to a final point. For binary functions on lists, then it's reduce to one element. For unary functions on any type, then it's iterate-to-fixpoint. But I agree it's a bit of a stretch.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
cognitive psychology. PhD