Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
22
Task/Optional-parameters/Bracmat/optional-parameters.bracmat
Normal file
22
Task/Optional-parameters/Bracmat/optional-parameters.bracmat
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
( ( sortTable
|
||||
= table ordering column reverse
|
||||
. !arg
|
||||
: ( ?table
|
||||
. ( ? (ordering.?ordering) ?
|
||||
| ?&lexicographic:?ordering
|
||||
)
|
||||
: ( ? (column.?column) ?
|
||||
| ?&1:?column
|
||||
)
|
||||
: ( ? (reverse.?reverse) ?
|
||||
| ?&no:?reverse
|
||||
)
|
||||
)
|
||||
& (...)
|
||||
)
|
||||
& (12.Claes.left)
|
||||
(11.Otto.right)
|
||||
(8.Frederikke.middle)
|
||||
: ?table
|
||||
& sortTable$(!table.(column.2) (reverse.yes))
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue