Return the items of x joined, collapsing one level of nesting
raze x raze[x]
To collapse all levels, use Converge i.e. raze/[x].
q)raze (1 2;3 4 5)
1 2 3 4 5
q)b:(1 2;(3 4;5 6);7;8)
q)raze b / flatten one level
1
2
3 4
5 6
7
8
q)raze/[b] / flatten all levels
1 2 3 4 5 6 7 8
q)raze 42 / atom returned as a list
,42
Returns the flattened values from a dictionary.
q)d:`q`w`e!(1 2;3 4;5 6)
q)value d
1 2
3 4
5 6
q)raze d
1 2 3 4 5 6