Xbasic

WORD_DUPLICATES Function

Syntax

result_list as c = word_duplicates(list as c)

Arguments

listCharacter

A CRLF delimited list.

Returns

result_listCharacter

The duplicate lines found in the list.

Description

Takes a CRLF delimited string and returns a list of all lines in the string that are duplicated.

Example

dim list as c =<<%str%
one
two
three
three
four
five
one
%str%

? word_duplicates(list)
= one
three