projects
/
fur
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added structs
[fur]
/
examples
/
17_short_circuiting.fur
1
def return_zero() do
2
print('This should not print\n')
3
2
4
end
5
6
def return_one() do
7
print('This should only print once.\n')
8
1
9
end
10
11
def return_true() do
12
print('This should print exactly twice.\n')
13
true
14
end
15
16
def return_false() do
17
print('This should print exactly twice.\n')
18
false
19
end
20
21
0 < return_one() < 2
22
0 < 0 < return_zero()
23
return_true() or return_true()
24
return_false() and return_false()