RosettaCodeData/Task/Short-circuit-evaluation/Mathematica/short-circuit-evaluation-1.math

5 lines
94 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
a[in_] := (Print["a"]; in)
b[in_] := (Print["b"]; in)
a[False] && b[True]
a[True] || b[False]