« first day (1420 days earlier)      last day (115 days later) » 

03:28
exceedingly anomalous behavior, please see the paste for more infromation
{x y}'[(.(*'i)#d);m]} where all inputs y are rows from a 2 column matrix, verified that all inputs y are length 2
{x+y,0}[6 0;5:] yet this is what results... where the hell is that 5: coming from?
adventofcode.com/2021/day/2#part2 please see this link for example input to the function in the pastebin
The idea is that there is a different function for each action described in the input, I want to map a list of action strings to their respective functions, and then, map each function with its input, and reduce for the result
But that 5: is just appearing out of nowhere, and I don't understand what is happening
04:05
I should also clarify, {x.y} doesn't apply, even though the function expects 2 arguments, and y is only length 2
And {x@y} gives me {x+y,0}[`I;5:]
 
3 hours later…
07:18
@nathanrogers try {x. y}' or .'
the 5: is a projection marker
 
4 hours later…
10:52
@chrispsn what is a projection marker?
 
5 hours later…
16:14
@PyGamer0 it's a special internal value
just a way for the implementation to keep track of which args in a projection are still "empty"
 
2 hours later…
17:55
Can someone please help me understand, there has always been some kind of disconnect with me and K. I resonate with K's goals, but for some reason, struggle with solving problems. What is the approach, or the mindset, especially contrasted against APL and Lisp/Scheme?
I can get to solutions, but it always feels round about and overwrought when I see other equivalent solutions.

« first day (1420 days earlier)      last day (115 days later) »