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

6 lines
95 B
Text
Raw Permalink Normal View History

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