Module
tuck/function
src/tuck/function.pookaA template can ask for a function only when its host has registered one.
Namespaces are names, not runtime modules: time.now can use an injected
build clock without giving the template access to arbitrary Pooka calls.
API reference
class Function(run: fn(List(Json)) -> Result(Json, String))
Arguments and results use the same typed values as template data. A host validates its argument contract and returns an explanatory error on failure.
run: fn(List(Json)) -> Result(Json, String)
INFERRED
fn(List($package/pooka_json/pooka/json.Json)) -> Result($package/pooka_json/pooka/json.Json, String)
INFERRED
fn(fn(List($package/pooka_json/pooka/json.Json)) -> Result($package/pooka_json/pooka/json.Json, String)) -> tuck/function.Functionvalid_name(name: String) -> Bool
INFERRED
fn(String) -> BoolNamespace components are identifiers. super belongs to block inheritance.