Jump to content

Short-circuit evaluation: Difference between revisions

m
(Added Easylang)
imported>Arakov
Line 1,318:
 
=={{header|Elena}}==
ELENA 56.0x :
<syntaxhighlight lang="elena">import system'routines;
import extensions;
Func<bool, bool> a = (bool x){ console.writeLine:("a"); ^ x };
Func<bool, bool> b = (bool x){ console.writeLine:("b"); ^ x };
const bool[] boolValues = new bool[]{ false, true };
Line 1,330:
public program()
{
boolValues.forEach::(bool i)
{
boolValues.forEach::(bool j)
{
console.printLine(i," and ",j," = ",a(i) && b(j));
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.