Where predicates and comparison helpers for Lisp evaluation.
Handles building predicates for filtering operations and comparison logic.
Summary
Functions
Builds a field accessor function from a field path AST node.
Builds a predicate combinator function (:all_of, :any_of, :none_of).
Builds a predicate function for where expressions.
Checks if a value is truthy (not nil or false).
Functions
Builds a field accessor function from a field path AST node.
Builds a predicate combinator function (:all_of, :any_of, :none_of).
Builds a predicate function for where expressions.
Checks if a value is truthy (not nil or false).
Examples
iex> PtcRunner.Lisp.Eval.Where.truthy?(nil)
false
iex> PtcRunner.Lisp.Eval.Where.truthy?(false)
false
iex> PtcRunner.Lisp.Eval.Where.truthy?(0)
true
iex> PtcRunner.Lisp.Eval.Where.truthy?("hello")
true