presenting a set, the order in which elements appear is not …
presenting a set, the order in which elements appear is not important. Two set representations are ain the same elements – regardless of order. Write an SML function, called isEquivalent’o, equivalent if isEquivalent To, that takes as input 51 and 52 denoting sets, and returns true if and only if the sets denoted by S1 and S2 are equivalent entTo [1,2,3] [1,2,3]; true *) entTo [1,2,3] [2,1,3]; true *) ntTo [1,2,3] [3,2,1]; true ) ntTo [1,2,3] [4,2,1]; false )
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
