Permalink
Browse files

tweak

  • Loading branch information...
lihaoyi committed May 28, 2018
1 parent 763a8d6 commit 40b3385a1984940f92e73eede73665d3d6c5efdf
Showing with 4 additions and 0 deletions.
  1. +4 −0 post/32 - Zero-Overhead Tree Processing with the Visitor Pattern.md
@@ -810,6 +810,10 @@ Zero-overhead chaining of multiple operations without intermediate trees:
performs a summation over the tree after converting number-like strings to
numbers *and* removing all redacted keys/values

- `dispatch(tree, new RedactVisitor(new ToIntVisitor(new ConstructionVisitor)))`
Construct with new `tree` with all number-like strings converted to all
redacted keys/values removed, without any intermediate trees

Directly performing operations on raw text, without constructing a tree:

- `dispatchParse(text, new StringifyVisitor)` performs a streaming re-formatting

0 comments on commit 40b3385

Please sign in to comment.