a pull-stream that can read ahead and then revert
A pull-stream that you can mark, read ahead, and then jump back to the marked point.
Used in [regular-stream] (https://github.com/dominictarr/regular-stream)
var markable = require'pull-markable'var read = pullvalues1 2 3pipemarkablevar revert = readmarkreadnullconsole.logdata //=> 1//data = 1readnullconsole.logdata //=> 2//revert takes us back to 1!revertreadnullconsole.logdata //=> 1 !
release old marks, and probably also capture groups.