You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kernel#Array returns an empty array when given nil. However, nil is retained when given an array containing nil. Unfortunately, this somehow surprising behavior is not documented.
Array(nil)# => []Array([nil])# => [nil]
Shall I open a PR to remedy this? :)
The text was updated successfully, but these errors were encountered:
Kernel#Array
returns an empty array when givennil
. However,nil
is retained when given an array containingnil
. Unfortunately, this somehow surprising behavior is not documented.Shall I open a PR to remedy this? :)
The text was updated successfully, but these errors were encountered: