RosettaCodeData/Task/Logical-operations/Wren/logical-operations.wren
2023-07-01 13:44:08 -04:00

11 lines
347 B
Text

var f = Fn.new { |a, b|
System.print("a = %(a)")
System.print("b = %(b)")
System.print("!a = %(!a)")
System.print("a && b = %(a && b)")
System.print("a || b = %(a || b)")
System.print()
}
var tests = [ [true, true], [true, false], [false, true], [false, false] ]
for (test in tests) f.call(test[0], test[1])