Home › Forums › kdb+ › Challenge 5 – Crack the Code › Re: Challenge 5 – Crack the Code
-
dc: .Q.a -1+ “j”$ sqrt %[;3] -[;8] :: / decrypt dc
371 56 20 251 1091 35 683 683 440
A sequence of unaries is close to an ideal style in q. According to Arthur Whitney, Ken Iverson considered even infix notation as a sequence of unaries, e.g.
2*3+4
as(2*)(3+)4
.Note how qs apply/index dualism allows us to compose a list in with the unary functions.
Goes without saying that all the iteration is implicit