On this page:
15.1 Template metafunction for multiassoc-syntax
tmpl-cdr-assoc-syntax
!cdr-assoc
15.2 Untyped versions of multiassoc-syntax
15.2.1 Untyped versions of tmpl-multiassoc-syntax
7.1

15 multiassoc-syntax

Georges Dupéron <[email protected]>

15.1 Template metafunction for multiassoc-syntax

 (require phc-toolkit/tmpl-multiassoc-syntax)
  package: phc-toolkit

template metafunction

(tmpl-cdr-assoc-syntax maybe-default query [k . v] )

 
maybe-default = 
  | #:default default

template metafunction

(!cdr-assoc maybe-default query [k . v] )

 
maybe-default = 
  | #:default default
This template metafunction returns the first v whose k is free-identifier=? to the given query. If no such k exists, then default is returned if specified, and otherwise an error is raised while expanding the template.

15.2 Untyped versions of multiassoc-syntax

 (require phc-toolkit/untyped/multiassoc-syntax)
  package: phc-toolkit

15.2.1 Untyped versions of tmpl-multiassoc-syntax

 (require phc-toolkit/untyped/tmpl-multiassoc-syntax)
  package: phc-toolkit