Skip to content

Instantly share code, notes, and snippets.

@folsen
Created April 26, 2015 18:08
Show Gist options
  • Save folsen/63603521936a944fbf6d to your computer and use it in GitHub Desktop.
Save folsen/63603521936a944fbf6d to your computer and use it in GitHub Desktop.
// This works:
let comma = satisfy(|c| c == ',');
let mut args = sep_by(word, satisfy(|c| c == ',')).skip(comma);
// But this doesn't
let comma = satisfy(|c| c == ',');
let mut args = sep_by(word, comma).skip(comma);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment