You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# complist
2
2
package for comparison of two items
3
3
4
-
The package only has one function IsSame(interface{}, interface{}) (bool, error) which takes in two items and compares whether they have the same number type of elements. For now it works for all ints, uints, strings, slices, arrays, and maps. It DOES NOT work for comparing individual floats or structs (yet).
4
+
The package only has one function IsSame(interface{}, interface{}) (bool, error) which takes in two items and compares whether they have the same number of elements of same values. For now it works for all ints, uints, strings, slices, arrays, and maps. It DOES NOT work for comparing individual floats or structs (yet).
5
5
6
6
IsSame compares two items according to the number and value of their elements. The two items are found to be identical if they have the same number of elements of the same value. So, "home" and "ohme", 12345 and 24153, a brand new box of Legos and another one already assembled would all be found identical.
0 commit comments