Union (OR)

Union (OR)

Description

Create the union (OR) of two or more sets.

Each line in the input text files is treated as an item. Items are case- and whitespace-sensitive. The order of items is not maintained.

Input files

  • at least 1 entries file (.txt)

Output files

  • Union (union.txt)

Context



Example

The following input files:

a.txt

John
Paul
George

b.txt

Paul
George
Ringo

...result in the following file:

intersection.txt

John
Paul
George
Ringo

Source code

union.rb, union.yaml (GitHub)