aboutsummaryrefslogtreecommitdiff
path: root/tests/src/negate.nim
blob: c775e74a9b173384b3e3028b0d429eabd46e7ce1 (plain) (blame)
1
2
3
4
5
func negate(x): bool -> bool =
  if x:
    0
  else:
    1