1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-06-17 00:07:49 +02:00
Files
fp-go/function/constants.go
Dr. Carsten Leue c07df5c771 initial checkin
Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
2023-07-07 22:31:06 +02:00

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)
}