REBOL Programming/unique

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

UNIQUE set /case /skip size 

DESCRIPTION:[edit]

Returns a set with duplicate values removed.

UNIQUE is a native value.

ARGUMENTS[edit]

  • set -- (Type: series)

REFINEMENTS[edit]

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

SOURCE CODE[edit]

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!]
]