Generalize indexing function

Tom Ellis tom-lists-haskell-cafe-2017 at jaguarpaw.co.uk
Sun Apr 11 10:35:53 UTC 2021


On Sun, Apr 11, 2021 at 12:03:04PM +0200, Henning Thielemann wrote:
> On Sun, 11 Apr 2021, Akhra Gannon wrote:
> 
> > It's distributive under IsList.
> > fromList (xs !! n) == (fromList xs) !! n
> 
> fromList (xs !! n) ?
> 
> I think, xs!!n is a single element.

Presumably `xs !! n == fromList xs !! n`


More information about the Libraries mailing list