clj-duckling.util.helpers

This namespace contains the common helpers used in rules

dim

(dim dim-val & predicates)
Returns a func checking dim of a token and additional preds

fn&

macro

(fn& dim & args-body)

integer

(integer & [min max & predicates])
Return a func (duckling pattern) checking that dim=number and integer=true,
optional range (inclusive), and additional preds