Jump to content

Rebol Programming/unique

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
UNIQUE set /case /skip size 

DESCRIPTION:

[edit | edit source]

Returns a set with duplicate values removed.

UNIQUE is a native value.

ARGUMENTS

[edit | edit source]
  • set -- (Type: series)

REFINEMENTS

[edit | edit source]
  • /case -- Use case-sensitive comparison
  • /skip -- Treat the series as records of fixed size
    • size -- (Type: integer)

SOURCE CODE

[edit | edit source]
unique: native[
    "Returns a set with duplicate values removed." 
    set [series!] 
    /case "Use case-sensitive comparison" 
    /skip "Treat the series as records of fixed size" 
    size [integer!]
]