Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Boolean-values/E/boolean-values-1.e
Normal file
8
Task/Boolean-values/E/boolean-values-1.e
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
? if (true) { "a" } else { "b" }
|
||||
# value: "a"
|
||||
|
||||
? if (false) { "a" } else { "b" }
|
||||
# value: "b"
|
||||
|
||||
? if (90) { "a" } else { "b" }
|
||||
# problem: the int 90 doesn't coerce to a boolean
|
||||
7
Task/Boolean-values/E/boolean-values-2.e
Normal file
7
Task/Boolean-values/E/boolean-values-2.e
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
? def bowlian {
|
||||
> to __conformTo(guard) {
|
||||
> if (guard == boolean) { return true }
|
||||
> }
|
||||
> }
|
||||
> if (bowlian) { "a" } else { "b" }
|
||||
# value: "a"
|
||||
Loading…
Add table
Add a link
Reference in a new issue