null ≡ nullOf foldedThis may be rather inefficient compared to the null check of many containers.
>>> nullOf _1 (1,2) False
>>> nullOf ignored () True
>>> nullOf traverse [] True
>>> nullOf (element 20) [1..10] True
nullOf (folded . _1 . folded) :: (Foldable f, Foldable g) => f (g a, b) -> Bool
nullOf :: Getter s a -> s -> Bool nullOf :: Fold s a -> s -> Bool nullOf :: Iso' s a -> s -> Bool nullOf :: Lens' s a -> s -> Bool nullOf :: Traversal' s a -> s -> Bool
not . null ≡ notNullOf foldedThis may be rather inefficient compared to the not . null check of many containers.
>>> notNullOf _1 (1,2) True
>>> notNullOf traverse [1..10] True
>>> notNullOf folded [] False
>>> notNullOf (element 20) [1..10] False
notNullOf (folded . _1 . folded) :: (Foldable f, Foldable g) => f (g a, b) -> Bool
notNullOf :: Getter s a -> s -> Bool notNullOf :: Fold s a -> s -> Bool notNullOf :: Iso' s a -> s -> Bool notNullOf :: Lens' s a -> s -> Bool notNullOf :: Traversal' s a -> s -> Bool