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

Description

Checks if the input array is a superset of one or more other arrays, meaning it contains all elements from the specified arrays.

Parameters

<array> The array to check for being a superset.
<arrays> One or more arrays to check for inclusion in the superset.

Return Value

Success: Returns true.
Failure: Returns false.

Remarks

The IsSupersetOf function is useful for determining if one array contains all elements of 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->>IsSupersetOf($b);
say $b->>IsSupersetOf($a);
// PRINTS
// false
// true

 


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