Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First step toward debugging #193

Closed
wavebeem opened this issue Jul 9, 2017 · 2 comments
Closed

First step toward debugging #193

wavebeem opened this issue Jul 9, 2017 · 2 comments

Comments

@wavebeem
Copy link
Collaborator

wavebeem commented Jul 9, 2017

I think to keep things flexible I'll just add tap for now and write a docs section about how to use it for debugging

_.tap = function(f) {
  return this.map(function(x) {
    f(x);
    return x;
  };
};
@wavebeem
Copy link
Collaborator Author

wavebeem commented Jul 9, 2017

Related to #143

@wavebeem wavebeem changed the title P.debug parser? First step toward debugging Oct 2, 2018
@wavebeem
Copy link
Collaborator Author

I'm gonna just close this since Parsimmon v2 already covers it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant