Manuals/calci/NUB

From ZCubes Wiki
Revision as of 17:42, 2 January 2019 by Devika (talk | contribs) (Created page with "<div style="font-size:30px">'''NUB (Array)'''</div><br/> *<math>Array</math> is any set of values. ==Description== *This function used to remove duplicate from the given set...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
NUB (Array)


  • is any set of values.

Description

  • This function used to remove duplicate from the given set of values.
  • In , is any set of values.
  • The Nub function removes duplicate elements from a list.
  • The name NUB means "essence".
  • In particular, it keeps only the first occurrence of each element.
  • It is a special case to do the equality test.

Examples

  1. NUB(["good","bad","clever","good"]) = good bad clever
  2. NUB([12,14,12,45,12,19,12])= 12 14 19 45

See Also

References