Skip to content

Instantly share code, notes, and snippets.

@catamorphism
Created May 6, 2011 01:20
Show Gist options
  • Save catamorphism/958293 to your computer and use it in GitHub Desktop.
Save catamorphism/958293 to your computer and use it in GitHub Desktop.
fn some_vec(int x) -> vec[int] {
ret vec();
}
fn is_odd(int n) -> bool { ret true; }
fn length_is_even(vec[int] vs) -> bool {
ret true;
}
fn foo(int acc, int n) -> () {
if (is_odd(n) && length_is_even(some_vec(1))) {
log_err("bloop");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment