29.9 UniteBlist

UniteBlist( blist1, blist2 )

UniteBlist unites the boolean list blist1 with the boolean list blist2, which must have the same length. This is equivalent to assigning blist1[i] := blist1[i] or blist2[i] for all i. UniteBlist returns nothing, it is only called to change blist1.

    gap> blist1 := [ true, true, false, false ];;
    gap> blist2 := [ true, false, true, false ];;
    gap> UniteBlist( blist1, blist2 );
    gap> blist1;
    [ true, true, true, false ] 

The function UnionBlist (see UnionBlist) is the nondestructive counterpart to the procedure UniteBlist.

Previous Up Top Next
Index

GAP 3.4.4
April 1997