"Sputnik" help  
Sputnik Help
IsDisjoint(<array>, <arrays>...)

Description

Checks if the input array is disjoint (has no common elements) with one or more other arrays.

Parameters

<array> The array to check for being disjoint.
<arrays> One or more arrays to check for having no common elements with the input array.

Return Value

Success: Returns true.
Failure: Returns false.

Remarks

The IsDisjoint function is useful for determining if one array has no common elements with multiple 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"];
my $b = ["Cat", "Fox", "Dog"];
say $a->>IsDisjoint($b);
say $b->>IsDisjoint($a);
// PRINTS
// false
// false

my $a = ["Cat", "Fox"];
my $b = ["Dog"];
say $a->>IsDisjoint($b);
say $b->>IsDisjoint($a);
// PRINTS
// true
// true

 


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