Repository navigation
0.3.0
Bumping the minor version number because this contains a non-trivial breaking change:
- The old
filterbuiltin has been renamed totree:mask. This was renamed to better reflect what the builtin does, and because "filter" suggested that it worked like the JavaScriptArray.prototype.filter. This confused more than one person. Thanks to @hpfast for sharing feedback that led to the discussion that led to this change. - A new operation called
tree:filterhas been introduced that more closely mirrors the JavaScriptfilter.
Both of these operations return a subset of an original tree. The main difference is that, intree:mask, you generally define the subset you want with a second tree. In tree:filter, you generally define the subset you want with a function that takes (value, key, tree) arguments.