Feel.Builtin.Boolean (feel v0.1.0)

Copy Markdown View Source

The boolean function of FEEL (DMN 1.6, section 10.3.4.2, Table 74).

There is one: not. It is the negation of Feel.Runtime.Logic (Table 51), which is also what a not(...) among unary tests is, so there is one rule: not(true) is false, not(false) is true, not(null) is null and no mistake, and not of anything else is null with a type mismatch (the TCK, 0066: not(0), not("true")). not is an ordinary word, not a keyword (D-13), so not(x) is a function call.

What is written (D-79)

CallResult
not(negand)the negation of a boolean

Summary

Functions

The functions of this module that are written, as Feel.Builtin.Functions.

Returns the canonical names of the functions of this module, sorted.

Functions

functions()

@spec functions() :: [Feel.Builtin.Function.t()]

The functions of this module that are written, as Feel.Builtin.Functions.

names()

@spec names() :: [Feel.Name.t()]

Returns the canonical names of the functions of this module, sorted.

iex> Feel.Builtin.Boolean.names()
["not"]