CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 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