[Newbies] closed and open interval

Marcelo Barbosa mpbarbosa at gmail.com
Mon Nov 24 14:18:50 UTC 2008


Hello
Squeak has Interval that represents interval with closed ends.
See the samples below:

(Interval from: 1 to: 10) includes: 2  --> true
(Interval from: 1 to: 10) includes: 10 --> true
(Interval from: 1 to: 10) includes: 11 --> false

2008/11/24 Cédrick Béler <cdrick65 at gmail.com>

> Hi
>
> Is there an existing data structure that allow to represent interval
> with either open or closed ends like [1 ; 10[.
>
> Thanks
>
> --
> Cédrick
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>


-- 
------------------------------------------
Marcelo Pereira Barbosa
São Paulo, Brasil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20081124/70319dd2/attachment.htm


More information about the Beginners mailing list