Martin Bialasinski a écrit :
> [1,2,3,4,5].inGroupsOf(3)       -> [[1,2,3],[4,5,null]]
> 
> To me, null is something explicitly set by the user / developer to "no
> value, not applicable", whereas undefined means "this value was not
> set explicitly at all".

I do believe the latter values ARE undefined.  What you *see* in the
text representation is a result of a pending bug in Object.inspect, that
displays undefined's as null's.

See http://dev.rubyonrails.org/ticket/5941

-- 
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to