TinyMUX

Strdiff()

Functions

Description

FUNCTION: strdiff(<string1>, <string2>)

Returns the set difference of grapheme clusters between two strings. The result contains grapheme clusters that appear in the first string but not the second.

Examples

> say strdiff(abcd, bc)

You say, “ad”

> say strdiff(hello, lo)

You say, “he”

setdiff(), strunion(), strinter()