DeepDive.FullWalk (Deep Dive v1.0.0) View Source

Link to this section Summary

Functions

This is the main API of the library. It expects the data to be a map-like (or list-like) structure to be explored. The second argument may be a DeepDive.Comparer.matcher.

Link to this section Functions

Specs

This is the main API of the library. It expects the data to be a map-like (or list-like) structure to be explored. The second argument may be a DeepDive.Comparer.matcher.

This means that it may be:

  • a Regex: in such case the key will be matched as such; be aware that the structs are a special case, in which the name of the struct alone is matched; also, every key that is not possible to transform in a String (i.e. everything that does not implement the Strings.Chars protocol) will make raise the function.
  • a function of the kind term -> bool: to allow a custom search logic.
  • anything else (except functions): in this case the match is done by means of ==.