Can someone explain me how the following line works line works:
p: raze(,'/)' [rs]
Here the rs is N * N dimensional list and each cell inside it is a M * M size string list (i.e each cell is a list of M strings of length M)
Output p is NM * NM dimensional string list (i.e NM strings of length NM)
As an example, consider
rs: 2 2# enlist 2 2# "a"
then by doing p: raze(,'/)' [rs]
we will get
aaaa
aaaa
aaaa
aaaa
Can someone dissect the line and help me understand
TIA.
- Rohith
P.S
The code snippet from this excellent repo https://github.com/adotsch/aoc/blob/master/2020/day20.q which had concise and efficient Advent of code 2020 solutions. I found it when I was looking around to compare my solutions. I ve been trying to learn from his solutions but got stuck at that part.