We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://pursuit.purescript.org/packages/purescript-lists/5.4.1/docs/Data.List.NonEmpty
Data.List.NonEmpty.deleteAt function doesn't exist, but
Data.List.NonEmpty.deleteAt
Data.List.deleteAt
Data.Array.NonEmpty.deleteAt
do exist. Seems like we should add Data.List.NonEmpty.deleteAt ?
The text was updated successfully, but these errors were encountered:
deleteAt :: forall a. Int -> NonEmptyList a -> Maybe (List a)
Sorry, something went wrong.
deleteAt :: forall a. Int -> NonEmptyList a -> Maybe (List a) deleteAt i (NonEmptyList (x :| xs)) | i == 0 = Just xs | otherwise = L.Cons x <$> L.deleteAt (i - 1) xs
Also alterAt?
alterAt
Adding these sounds good to me!
No branches or pull requests
https://pursuit.purescript.org/packages/purescript-lists/5.4.1/docs/Data.List.NonEmpty
Data.List.NonEmpty.deleteAt
function doesn't exist, butData.List.deleteAt
Data.Array.NonEmpty.deleteAt
do exist. Seems like we should add
Data.List.NonEmpty.deleteAt
?The text was updated successfully, but these errors were encountered: