Pour trouver l'intersection, l'union, le complément, etc. entre deux ou plusieurs listes : utilisation du module perl :
List::Compare
Methods
All the comparison methods available in the Regular case are available to you in the Accelerated case as well.
@intersection = $lca->get_intersection;
@union = $lca->get_union;
@Lonly = $lca->get_unique;
@Ronly = $lca->get_complement;
@LorRonly = $lca->get_symmetric_difference;
@bag = $lca->get_bag;
$intersection_ref = $lca->get_intersection_ref;
$union_ref = $lca->get_union_ref;
$Lonly_ref = $lca->get_unique_ref;
$Ronly_ref = $lca->get_complement_ref;
$LorRonly_ref = $lca->get_symmetric_difference_ref;
$bag_ref = $lca->get_bag_ref;
$LR = $lca->is_LsubsetR;
$RL = $lca->is_RsubsetL;
$eqv = $lca->is_LequivalentR;
$disj = $lca->is_LdisjointR;
$lca->print_subset_chart;
$lca->print_equivalence_chart;
@memb_arr = $lca->is_member_which('abel');
$memb_arr_ref = $lca->is_member_which_ref('baker');
$memb_hash_ref = $lca->are_members_which(
[ qw| abel baker fargo hilton zebra | ]);
$found = $lca->is_member_any('abel');
$memb_hash_ref = $lca->are_members_any(
[ qw| abel baker fargo hilton zebra | ]);
$vers = $lca->get_version;
Aucun commentaire:
Enregistrer un commentaire