Created
May 6, 2011 01:20
-
-
Save catamorphism/958293 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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