We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f17b04 commit ec91584Copy full SHA for ec91584
src/Data/List/NonEmpty.purs
@@ -48,10 +48,10 @@ head (NonEmptyList (x :| _)) = x
48
last :: forall a. NonEmptyList a -> a
49
last (NonEmptyList (x :| xs)) = fromMaybe x (L.last xs)
50
51
-tail :: forall a. NonEmptyList a -> L.List a
+tail :: NonEmptyList ~> L.List
52
tail (NonEmptyList (_ :| xs)) = xs
53
54
-init :: forall a. NonEmptyList a -> L.List a
+init :: NonEmptyList ~> L.List
55
init (NonEmptyList (x :| xs)) = maybe L.Nil (x : _) (L.init xs)
56
57
uncons :: forall a. NonEmptyList a -> { head :: a, tail :: L.List a }
0 commit comments