pub fn parse(input: &str) -> Intermediate {
	let mut results = input.split("\n\n");
	let calls = results.next();
	let boards = results;

	let calls: Vec<Number> = calls
		.unwrap_or("")
		.split(',')
		.map(str::parse)
		.filter_map(Result::ok)
		.collect();

	let boards: Vec<Board> = boards.map(str::parse).filter_map(Result::ok).collect();

	(calls, boards)
}
/// Parses the input down to a list of calls and a set of boards.
Parses the input down to a list of calls and a set of boards.
Parses the input down to a list of calls and a set of boards .
pub fn parse(input: &str) -> Intermediate {
	let mut results = input.split("\n\n");
	let calls = results.next();
	let boards = results;
	let calls: Vec<Number> = calls
		.unwrap_or("")
		.split(',')
		.map(str::parse)
		.filter_map(Result::ok)
		.collect();
	let boards: Vec<Board> = boards.map(str::parse).filter_map(Result::ok).collect();
	(calls, boards)
}
pub fn parse ( input : & str ) -> Intermediate { let mut results = input . split ( " \n \n " ) ; let calls = results . next ( ) ; let boards = results ; let calls : Vec < Number > = calls . unwrap_or ( " " ) . split ( ',' ) . map ( str :: parse ) . filter_map ( Result :: ok ) . collect ( ) ; let boards : Vec < Board > = boards . map ( str :: parse ) . filter_map ( Result :: ok ) . collect ( ) ; ( calls , boards ) }
Parses the input down to a list of calls and a set of boards.
Parses the input down to a list of calls and a set of boards .
input
&str
input
&str