purescript-lists
purescript-lists copied to clipboard
Linked Lists
As an alternative to https://github.com/purescript/purescript-foldable-traversable/issues/69, we could add a class: ```purescript class ToList f where toList :: forall a. f a -> LL.List a foldrLazy :: forall a b. Z.Lazy...
if you think it's a good idea, i will try to put together a pull request
Hello everyone! I have some experiments with lazy list. But I have some problem. ```purescript module Main where import Prelude (Unit, map, mod, show, ($), (*), (+), (/=), (
Although a little unwieldy, the NonEmpty version of `span` should really have a signature like this, to preserve the non-emptyness (the current version loses it): ``` purescript span :: forall...
I am new to PureScript and to learn it, I was implementing a solution to this problem: [Project Euler 694](https://projecteuler.net/problem=694). Guess what, when I tried to sort a list (Data.List.sort)...
Proposing we add these `mapN` functions, and make them available to more than just `List`. ```purs map2 :: forall a b c f. Functor f => (a -> b ->...
From a beginner or intermediate user's perspective, it's currently not clear at all what to do with this. Some examples would make it more accessible. I'd be happy to help...
There's a lot in common among containers such as `List`, `Array`, `Set`, but their APIs drift out of sync. What's a good strategy to keep everything up to date? We...
The optimization used in https://github.com/purescript/purescript-lists/pull/180#issuecomment-748565788 can be applied to more List functions. > thinking these should all be replaced with a common rev helper function in this file (along with...