Google Groups Home
Help | Sign in
Cons.FromXXX inconsistency
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Graven  
View profile
 More options Jan 23 2007, 10:52 am
From: "Graven" <gra...@igni.ru>
Date: Tue, 23 Jan 2007 07:52:17 -0800
Local: Tues, Jan 23 2007 10:52 am
Subject: Cons.FromXXX inconsistency
Hello guys,

I'm just started playing with L#; my project involves passing a
String[] to the interpreter. I'm forced to use Cons.FromArray or
Cons.FromICollection in this case, and I've figured out that those
functions return different results -- FromArray provides a valid Cons,
while FromICollection reverses it.

I can't understand, if it's a bug or it has some deeper meaning -- can
anyone clarify that?

Thanks!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
raycomas@gmail.com  
View profile
 More options Jan 23 2007, 12:30 pm
From: "rayco...@gmail.com" <rayco...@gmail.com>
Date: Tue, 23 Jan 2007 17:30:47 -0000
Local: Tues, Jan 23 2007 12:30 pm
Subject: Re: Cons.FromXXX inconsistency

Well, FromICollection returns a valid Cons too, its just that the list
elements aren't in the order you're expecting.

ICollection implies an unordered collection; in fact, there is no
enumerator for it, so you shouldn't expect the objects in an
ICollection to be in any specific order.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
raycomas@gmail.com  
View profile
 More options Jan 23 2007, 12:41 pm
From: "rayco...@gmail.com" <rayco...@gmail.com>
Date: Tue, 23 Jan 2007 17:41:35 -0000
Local: Tues, Jan 23 2007 12:41 pm
Subject: Re: Cons.FromXXX inconsistency
Ack! what I meant to say is that there's no indexer for ICollection ...
of course it has an enumerator.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google