Skip to content
Discussion options

You must be logged in to vote

You can do:

let num_sep = number().then_ignore(arg_sep());

group((num_sep, num_sep, num_sep, ...))

Alternatively, if you want to accept any number of them,

number().separated_by(arg_sep()).collect::<Vec<_>>()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SkyLeite
Comment options

Answer selected by SkyLeite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants