Archeometer.Query.Term.Container (Archeometer v0.5.0)

Utility functions for dealing with "container" AST. That is, tuples, list, keyword list and maps.

Some examples of valid containers

["regular", "lists"]

[keyword: "lists"]

{"simple", "tuples"}

%{map: "values"}

The only restriction for containers is that they can't be nested.

Link to this section Summary

Functions

Wrapper to work with the AST of container terms (i.e. tuples, maps and lists).

Link to this section Functions

Link to this function

reduce(ast, init_value, fun)

Wrapper to work with the AST of container terms (i.e. tuples, maps and lists).