Closed RobinHankin closed 12 months ago
suppressWarnings(library("frab")) #> #> Attaching package: 'frab' #> The following objects are masked from 'package:base': #> #> pmax, pmin frab(c(a=1,b=2,c=3)) == c(a=1,b=2,c=3) #> #> disordR discipline error in: #> values(e1) == e2 #> Error in check_matching_hash(e1, e2, match.call()): #> cannot combine disord object with hash code 471a46a1167406f770fe039498ad8c1da1f59f6d with a vector
Above, the == operator has a clear expectation (TRUE) and it would be reasonable (?) to coerce the RHS to a frab before attempting the coercion
==
TRUE
frab
If this suggestion was consistent, the named vector could be reordered without changing its "value", so that frab(c(a=1,b=2,c=3)) ==c(b=2,a=1,c=3)should also returnTRUE`.
frab(c(a=1,b=2,c=3)) ==
should also return
Above, the
==
operator has a clear expectation (TRUE
) and it would be reasonable (?) to coerce the RHS to afrab
before attempting the coercion