Package osh :: Package command :: Module unique
[frames] | no frames]

Module unique

source code

unique [-c]

Input objects are passed to output, removing duplicates. No output is generated until the end of the input stream occurs. However, if the duplicates are known to be consecutive, then specifying -c allows output to be generated sooner. Input order is preserved only if -c is specified.

Functions
 
unique(consecutive=False)
Input objects are passed to output, removing duplicates.
source code
Function Details

unique(consecutive=False)

source code 

Input objects are passed to output, removing duplicates. No output is generated until the end of the input stream occurs. However, if the duplicates are known to be consecutive, then setting consecutive to true allows output to be generated sooner. Input order is preserved only if consecutive is true.