Usage
merge!()
merge!(, f)
Signature
merge!: (%,%,(T,T) Boolean) %
Parameter | Type | Description |
---|---|---|
% | sorted lists | |
f | (T, T) Boolean | a comparison function |
Description
Given sorted where is true whenever , returns the list containing all the elements of and , sorted using the ordering . The comparison function is optional if has TotallyOrderedType, in which case the order function of is taken.
Remarks
merge! does not make copies of and , which are therefore modified after the call. It is unsafe to use the variable and after the call, unless the result of the call has been assigned, as in l := merge!().
See Also
sort!