traverse v0.1.0 Traverse.Macros

Useful shortcuts for traversal and structure functions.

Summary

Macros

Very often, traversal and structure functions need to distinguish on this type of argument, e.g

Macros

is_scalar(x)

Very often, traversal and structure functions need to distinguish on this type of argument, e.g.

  fn ...
     (ele, acc) when is_scalar(ele) -> some_update(ele, acc)