@@ -8,7 +8,7 @@ import Control.Monad.Eff.Console (CONSOLE, log)
88import Data.Bifoldable (class Bifoldable , bifoldl , bifoldr , bifoldMap , bifoldrDefault , bifoldlDefault , bifoldMapDefaultR , bifoldMapDefaultL )
99import Data.Bifunctor (class Bifunctor , bimap )
1010import Data.Bitraversable (class Bitraversable , bisequenceDefault , bitraverse , bisequence , bitraverseDefault )
11- import Data.Foldable (class Foldable , foldl , foldr , foldMap , foldrDefault , foldlDefault , foldMapDefaultR , foldMapDefaultL , minimumBy , minimum , maximumBy , maximum , find , findMap )
11+ import Data.Foldable (class Foldable , foldl , foldr , foldMap , foldrDefault , foldlDefault , foldMapDefaultR , foldMapDefaultL , minimumBy , minimum , maximumBy , maximum , find , findMap , null )
1212import Data.Function (on )
1313import Data.Int (toNumber )
1414import Data.Maybe (Maybe (..))
@@ -103,6 +103,13 @@ main = do
103103 (map (negate <<< toNumber) (arrayFrom1UpTo 10 ))
104104 == Just (-1.0 )
105105
106+ log " Test null"
107+ assert $ null Nothing == true
108+ assert $ null (Just 1 ) == false
109+ assert $ null [] == true
110+ assert $ null [0 ] == false
111+ assert $ null [0 ,1 ] == false
112+
106113 log " All done!"
107114
108115
0 commit comments