Discover Packages
github.com/mantidtech/tplr
functions
logic
package
Version:
v0.10.2
Opens a new window with list of versions in this module.
Published: May 20, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types Functions() IsZero(val) When(value, cond) WhenEmpty(value, cond)
Documentation
¶
Functions perform logical operations
IsZero returns true if the value given corresponds to its types zero value,
points to something zero valued, or if it's a type with a length which is 0
func When(value, cond any ) any
When returns 'value' if 'cond' is not a zero value, otherwise it returns an empty string
func WhenEmpty(value, cond any ) any
WhenEmpty returns 'value' if 'cond' is a zero value, otherwise it returns 'cond'
Source Files
¶
Click to show internal directories.
Click to hide internal directories.