Skip to content

Instantly share code, notes, and snippets.

View lordofwizard's full-sized avatar
🐎
Gettin' better, than yesterday

Advait Pandharpurkar lordofwizard

🐎
Gettin' better, than yesterday
View GitHub Profile
@lordofwizard
lordofwizard / temp.rs
Created February 1, 2022 11:04
Basically The implementation i got for input from a discord user for comp-coding
macro_rules! input {
($($var:ident)*) => {
let mut buf = String::new();
std::io::stdin().read_line(&mut buf).unwrap();
let mut words = buf.split_whitespace();
$(
$var = words.next().unwrap().parse().unwrap();
)*
}
}