TinyMARE HelpText

Global Functions > Setdiff()

Setdiff()

setdiff(<list1>,<list2>)
setdiff(<list1>,<list2>,<input delim>,<output delim>)

This function returns the difference of two sets of words--i.e. the elements in <list1> that are not in <list2>. If <list1> contains duplicate words, then each occurrance of a matching word is removed from <list1>, and all other words remain unchanged. Words are matched case-insensitive.

Examples:

Function Returns
[setdiff(1 2 3,2 4 6)] 1 3
[setdiff(#3 #17 #19 #25 #180,#17)] #3 #19 #25 #180
[setdiff(Three and seven and ten,and)] Three seven ten

See also: setinter(), setunion()

From the TinyMARE Help command - Courtesy Gandalf

-- SluggyQBFreak - 05 Jan 2006
Topic revision: r1 - 05 Jan 2006, SluggyQBFreak
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding WikiMARE? Send feedback