package
Version:
v0.0.0-...-0d409a9
Opens a new window with list of versions in this module.
Published: Jun 10, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func And(a, b bool) bool
-
func Guard[T any](when bool, default_value T, alternative func() T) T
-
func LazyGuard[T any](when bool, default_value func() T, alternative func() T) T
-
func Nand(a, b bool) bool
-
func Nor(a, b bool) bool
-
func Not(a bool) bool
-
func Or(a, b bool) bool
-
func ToInt(a bool) int
-
func ToString(a bool) string
-
func Xnor(a, b bool) bool
-
func Xor(a, b bool) bool
Returns true if both a and b are true
func Guard[T any](when bool, default_value T, alternative func() T) T
Run a callback function if the given bool is false, otherwise return the given default value
func LazyGuard[T any](when bool, default_value func() T, alternative func() T) T
Run a callback function if the given bool is true, otherwise return the given alternative callback
Returns true if either a or b is false
Returns true if both a and b are false
Returns the opposite of a
Returns true if either a or b is true
Returns 1 if a is true, 0 if a is false
Returns "True" if a is true, "False" if a is false
Returns true if a and b are the same
Returns true if a and b are different
Source Files
¶
Click to show internal directories.
Click to hide internal directories.