summaryrefslogblamecommitdiffstats
path: root/helpers.nim
blob: 614b2eaa971f62fe176c365b715de10fb2a2a74c (plain) (tree)
1
2
3
4
5
6
7
8


                                     
 



                                     


                                       
proc boolToInt* (value: bool): int = 
  if value != true: return 0
  else:             return 1

proc intToBool* (value: int): bool = 
  if value != 1:    return false
  else:             return true

proc invertBool* (value: bool): bool = 
  if value != true: return true
  else:             return false