mirror of
https://github.com/IBM/fp-go.git
synced 2025-06-17 00:07:49 +02:00
10 lines
155 B
Go
10 lines
155 B
Go
package function
|
|
|
|
var ConstTrue = Constant(true)
|
|
var ConstFalse = Constant(false)
|
|
|
|
// ConstNil returns nil
|
|
func ConstNil[A any]() *A {
|
|
return (*A)(nil)
|
|
}
|