Revert "lists: Add list literal doc example."
[factor.git] / basis / columns / columns-tests.factor
blob4bd8af976eb00e67e522a50587055c6584ef2c5d
1 USING: arrays columns kernel math namespaces sequences
2 tools.test ;
4 ! Columns
5 { { 1 2 3 } { 4 5 6 } { 7 8 9 } } [ clone ] map "seq" set
7 { { 1 4 7 } } [ "seq" get 0 <column> >array ] unit-test
8 { } [ "seq" get 1 <column> [ sq ] map! drop ] unit-test
9 { { 4 25 64 } } [ "seq" get 1 <column> >array ] unit-test
11 { { { 1 3 } { 2 4 } } } [ { { 1 2 } { 3 4 } } <flipped> [ >array ] map ] unit-test