This is the core package, it contains all essential functions.
package : Dict String Leaf.Field
Dict containing all functions in this package, read to be used in Leaf.
equal : Leaf.Value -> Leaf.Value -> Basics.Bool
Checks if two values are (structually) equal.
notEqual : Leaf.Value -> Leaf.Value -> Basics.Bool
Checks if two values are (structually) different.
if_ : Basics.Bool -> Leaf.Value -> Leaf.Value -> Leaf.Value
If the first value is true, it returns the second value, else it returns the third value.
isBool : Leaf.Value -> Basics.Bool
Checks if a value is a boolean
isExtension : Leaf.Value -> Basics.Bool
Checks if a value is an extension function.
isFloat : Leaf.Value -> Basics.Bool
Checks if a value is a float
isFunction : Leaf.Value -> Basics.Bool
Checks if a value is a function.
isInt : Leaf.Value -> Basics.Bool
Checks if a value is an int
isList : Leaf.Value -> Basics.Bool
Checks if a value is a list. Does not check if all values of the list have the same type.
isNull : Leaf.Value -> Basics.Bool
Checks if a value is null
isObject : Leaf.Value -> Basics.Bool
Checks if a value is an object. This is not useful if you want an object with a specific structure, write your own checker instead.
isString : Leaf.Value -> Basics.Bool
Checks if a value is a string