package
Version:
v0.0.0-...-abd1f79
Opens a new window with list of versions in this module.
Published: Mar 23, 2017
License: BSD-3-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
Package generic provides type-generic functions.
func CanOrder(a, b interface{}) bool
CanOrder returns whether the values a and b are orderable according
to the Go language specification.
CanOrderR returns whether two values of kind k are orderable
according to the Go language specification.
func Order(a, b interface{}) int
Order returns the order of values a and b: -1 if a < b, 0 if a ==
b, 1 if a > b. The results are undefined if either a or b is NaN.
Order panics if a and b are not orderable according to the Go
language specification.
OrderR is equivalent to Order, but operates on reflect.Values.
Source Files
¶
Directories
¶
Package slice provides generic slice functions.
|
Package slice provides generic slice functions. |
Click to show internal directories.
Click to hide internal directories.