SingleArgumentDispatch

SingleArgumentDispatch=>true -- an option to method which specifies whether the method function should treat several arguments as a single argument, i.e., as a sequence.

This allows the user to install a method for handling sequences, whereas normally, the types of up to the three arguments are considered.

i1 : f = method ( SingleArgumentDispatch => true )

o1 = f

o1 : Function
i2 : f Sequence := print

o2 = print

o2 : Function

'print x' -- prints 'x' on the standard output followed by a new line
i3 : f (1,2,3)
(1, 2, 3)


topindexpreviousupnext