Re: Why equal(x[n], x[n..n])=0 ?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Pete,

Pete Lomax wrote:
> 
> Jason Gade wrote:
> > Because when you say s[3..3] you are saying, "bring me one item in a
> > bucket".
> > It's not mutually exclusive. You can carry one thing with or without the
> > bucket.
> > You can always take the item out of the bucket after it is brought to you.
> > 
> I like that analogy. A slice asks for a bucket with n items in it. You've
> always
> got the bucket, whether it has 97, 4, 1, or 0 things in it.
> And a thing in a bucket is not the same as said thing not in a bucket.
And that is the problem! Sometimes you expect a thing out of the bucket and you
receive within the bucket.

> 
> Regards,
> Pete
Regards,
   Fernando

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu