tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
40
Task/Optional-parameters/J/optional-parameters-2.j
Normal file
40
Task/Optional-parameters/J/optional-parameters-2.j
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
]Table=: ('a';'b';'c'),('';'q';'z'),:'zip';'zap';'Zot'
|
||||
┌───┬───┬───┐
|
||||
│a │b │c │
|
||||
├───┼───┼───┤
|
||||
│ │q │z │
|
||||
├───┼───┼───┤
|
||||
│zip│zap│Zot│
|
||||
└───┴───┴───┘
|
||||
srtbl Table NB. default sort
|
||||
┌───┬───┬───┐
|
||||
│ │q │z │
|
||||
├───┼───┼───┤
|
||||
│a │b │c │
|
||||
├───┼───┼───┤
|
||||
│zip│zap│Zot│
|
||||
└───┴───┴───┘
|
||||
]`1: srtbl Table NB. sort by column 1
|
||||
┌───┬───┬───┐
|
||||
│a │b │c │
|
||||
├───┼───┼───┤
|
||||
│ │q │z │
|
||||
├───┼───┼───┤
|
||||
│zip│zap│Zot│
|
||||
└───┴───┴───┘
|
||||
]`2:`1: srtbl Table NB. reverse sort by column 2
|
||||
┌───┬───┬───┐
|
||||
│zip│zap│Zot│
|
||||
├───┼───┼───┤
|
||||
│ │q │z │
|
||||
├───┼───┼───┤
|
||||
│a │b │c │
|
||||
└───┴───┴───┘
|
||||
#&>`0: srtbl Table NB. sort by length
|
||||
┌───┬───┬───┐
|
||||
│ │q │z │
|
||||
├───┼───┼───┤
|
||||
│a │b │c │
|
||||
├───┼───┼───┤
|
||||
│zip│zap│Zot│
|
||||
└───┴───┴───┘
|
||||
Loading…
Add table
Add a link
Reference in a new issue