JanetDocs
Playground
I'm feeling lucky
GitHub sign in
Run
Format
# Flatten single level of nested collections (def foo [ [[1 2] [3 4]] [[5 6] [7 8]] ]) (apply array/concat @[] foo) # => @[(1 2) (3 4) (5 6) (7 8)]