3 ms·Haskell has this with `Maybe`, although you could write the Bool instance yourself pretty easily if you liked.by Y_Y 9y agoHaskell has this with `Maybe`, although you could write the Bool instance yourself pretty easily if you liked.