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

Description

Checks if the input array is a subset of one or more other arrays, meaning it contains only elements that exist in the specified arrays.

Parameters

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

Return Value

Success: Returns true.
Failure: Returns false.

Remarks

The IsSubsetOf function is useful for determining if one array contains only elements that exist in 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->>IsSubsetOf($b);
say $b->>IsSubsetOf($a);
// PRINTS
// true
// false

 


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