Re: Generalize indexing function

Keith <[email protected]>
Newsgroups gmane.comp.lang.haskell.libraries
Message-ID <[email protected]>
Maybe `xs !! n  ==  fromList xs !! fromEnum n`?

-- Keith
Sent from my phone with K-9 Mail.

On April 11, 2021 10:35:53 AM UTC, Tom Ellis <[email protected]> wrote:
>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`
>_______________________________________________
>Libraries mailing list
>[email protected]
>http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries

_______________________________________________
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.