Optional parameters: Difference between revisions

m
→‎{{header|J}}: whitespace
(→‎{{header|J}}: simplify & add examples)
m (→‎{{header|J}}: whitespace)
Line 646:
For simplicity, the optional arguments are all functions, and are positional (on the left -- the table, with its arbitrary number of rows and columns, is on the right). Note also that the ordering function is expected to map its entire argument (since this offers much better efficiencies than a binary comparison).
 
'''ExamplesExample Use'''
<lang j> ]Table=: ('a';'b';'c'),('';'q';'z'),:'zip';'zap';'Zot'
┌───┬───┬───┐
│a │b │c │
892

edits