-
initial item of each prior ‘: match
<div>the example is taken from the Q for mortals each prior section:</div>
q)(~’:) 1 1 1 2 2 3 4 5 5 5 6 6
011010001101b
was wondering why the first out is 0b instead of integer 1, given each prior returns initial item of the input list? or it is 0b since there is nothing to compare 1 to?
in general, is it the case (~’:) list always output 0 as the first element of the output?
thanks!
Log in to reply.