mirror of
https://github.com/IBM/fp-go.git
synced 2025-06-21 00:19:34 +02:00
22 lines
323 B
Go
22 lines
323 B
Go
package constraints
|
|
|
|
type Ordered interface {
|
|
Integer | Float | ~string
|
|
}
|
|
|
|
type Signed interface {
|
|
~int | ~int8 | ~int16 | ~int32 | ~int64
|
|
}
|
|
|
|
type Unsigned interface {
|
|
~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
|
|
}
|
|
|
|
type Integer interface {
|
|
Signed | Unsigned
|
|
}
|
|
|
|
type Float interface {
|
|
~float32 | ~float64
|
|
}
|