RosettaCodeData/Task/Logical-operations/FunL/logical-operations.funl

9 lines
193 B
Plaintext

def logical( a, b ) = println( """
a and b = ${a and b}
a or b = ${a or b}
not a = ${not a}
a xor b = ${a xor b}
""" )
for i <- [false, true], j <- [false, true] do logical( i, j )