mirror of
https://github.com/IBM/fp-go.git
synced 2025-08-10 22:31:32 +02:00
initial checkin
Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
9
function/constants.go
Normal file
9
function/constants.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package function
|
||||
|
||||
var ConstTrue = Constant(true)
|
||||
var ConstFalse = Constant(false)
|
||||
|
||||
// ConstNil returns nil
|
||||
func ConstNil[A any]() *A {
|
||||
return (*A)(nil)
|
||||
}
|
Reference in New Issue
Block a user