[LRUG] Array.slice question
Michael Pavling
pavling at gmail.com
Wed Sep 7 01:34:56 PDT 2011
On 7 September 2011 09:33, Neil Middleton <neil.middleton at gmail.com> wrote:
> You're asking for no length with [3,0] hence it slicing at position 3 for 0
> chars. With the second version you're using an out of range start position
> hence the nil.
But if x[3] is nil (because it's out of range), how come starting the
slice at 3 doesn't count as out of range too?:-/
More information about the Chat
mailing list