Re: Generalize indexing function

Akhra Gannon <[email protected]>
Newsgroups gmane.comp.lang.haskell.libraries
Message-ID <CAJoPsuC43oEj6nhPJCTu86fWeEQcbu8nM=W01ygum8KPv8KGSw@mail.gmail.com>
Yeah, I mis-composed that. Pretty sure there's a formulation around
take/head that works but I'm clearly not in a headspace to find it!

On Sun, Apr 11, 2021, 3:03 AM Henning Thielemann <
[email protected]> 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.
>

_______________________________________________
Libraries mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.