[Newbies] Interval>>copyFrom:to:

Ralph Boland rpboland at gmail.com
Sat Dec 11 21:58:41 UTC 2010


Could someone  explain why:

      (5 to: 100010) copyFrom: 3 to: 1000000

returns an Array rather than an Interval?

Returning an Interval is more intuitive to me
since the copyFrom:to: message is being sent
to an Interval.
Of course, for the the example above at least,
it is more efficient as well.

Regards,

Ralph Boland


More information about the Beginners mailing list