Visit, for monitoring or mutating pipelines
authorTom Jackson <tjackson@fb.com>
Thu, 20 Jul 2017 00:22:27 +0000 (17:22 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 20 Jul 2017 00:29:19 +0000 (17:29 -0700)
commite1fb97e7c0bf8176ff9b72493ecf14d7781559b0
treefceb6d34fba990ae1aca5e75421e42a47082b1d3
parent4b807f9ef3410b33923c6575cc57a667eeb53a76
Visit, for monitoring or mutating pipelines

Summary: The pattern `mapped([](auto&& i) { ...; return std::move(i); }` is quite common. Evidently people need some good mechanism to just observe or possibly mutate items in pipelines. Note that this is still lazy, it is only called when the pipeline is run.

Reviewed By: yfeldblum

Differential Revision: D5457196

fbshipit-source-id: 3a892b8895e02dd8fcd6a7fd4d3b27063d1b071f
folly/gen/Base-inl.h
folly/gen/Base.h
folly/gen/test/BaseTest.cpp