"Sputnik" help  
Sputnik Help
Difference(<arrays>...)

Description

Creates a new array containing elements that do not exist in any of the subsequent arrays.

Parameters

<arrays>... At least two arrays to compare with each other.

Return Value

Success: Returns a new array containing elements that do not exist in any of the subsequent arrays.
Failure: Returns an empty array.

Remarks

The Difference function creates a new array that includes elements unique to each array, excluding those that are common with any of the other arrays.

Make sure to read about the ->> and the =>> operators which are very often used in Linq statements.

Related

Example

Example of usage:

my $a = ["Cat", "Fox", "Dog"];
my $b = ["Fox", "Cat", "Horse"];
printr $a->>Difference($b);
// PRINTS
// Array
// (
//     [0] => Dog
//     [1] => Horse
// )

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org