<commit_before>//  Copyright © 2015 <NAME>. All rights reserved.

/// Parses `open`, followed by `parser` and `close`. Returns the value returned by `parser`.
public func between<C: CollectionType, T, U, V>(open: Parser<C, T>.Function, _ close: Parser<C, U>.Function)(_ parser: Parser<C, V>.Function) -> Parser<C, V>.Function {
	return open *> parser <* close
}<commit_msg>Implement manyTill<commit_after>//  Copyright © 2015 <NAME>. All rights reserved.

/// Parses `open`, followed by `parser` and `close`. Returns the value returned by `parser`.
public func between<C: CollectionType, T, U, V>(open: Parser<C, T>.Function, _ close: Parser<C, U>.Function)(_ parser: Parser<C, V>.Function) -> Parser<C, V>.Function {
	return open *> parser <* close
}

///
public func manyTill<C: CollectionType, T, U>(parser: Parser<C, T>.Function)(_ end: Parser<C, U>.Function) -> Parser<C, [T]>.Function {
	return many(parser) <* end
}
{'fraction_non_alphanumeric': 0.1735357917570499, 'fraction_numerical': 0.008676789587852495, 'mean_word_length': 4.697530864197531, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2231240', 'n_tokens_mistral': 314, 'n_tokens_neox': 305, 'n_words': 101}