init code
This commit is contained in:
1 parent
a7559b3f9d
commit
92a63c7885
43 files changed
+1115
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package opx
|
||||
|
||||
// Ite If-then-else
|
||||
func Ite[T any](condition bool, trueValue T, falseValue T) T {
|
||||
if condition {
|
||||
return trueValue
|
||||
} else {
|
||||
return falseValue
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user