Quick actions

cmd+k|ctrl+k

Navigation

Languages

"if a then b else not b" truth table

Snippet info

Language

Haskell

Visibility

public

Author

rightfold

Created

2017-09-17T16:16:06Z

Updated

2017-09-17T16:17:03Z

module Main (main) where

import Data.Foldable (traverse_)

main :: IO ()
main = traverse_ print $
    [ (a, b, if a then b else not b)
    | a <- [False, True]
    , b <- [False, True] ]
INFO