Open Athari opened 5 years ago
Remove compareStrict and compareLoose functions in Functions. Add compare function which is implemented using spaceship operayor (<=>).
compareStrict
compareLoose
Functions
compare
<=>
compareStrict is unstable anyway (1 < '1' == false, 1 > '1' == false).
1 < '1' == false
1 > '1' == false
Remove
compareStrict
andcompareLoose
functions inFunctions
. Addcompare
function which is implemented using spaceship operayor (<=>
).compareStrict
is unstable anyway (1 < '1' == false
,1 > '1' == false
).