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
* Add last to lists
For simplicity, this does not strictly respect Array#last when nil or
false is passed, returning the last element instead of raising a
TypeError.
It also doesn't coerce the parameter into an int with to_int like
Array#last does.
* Update list.rb
Drop defensive programming
* Update list_test.rb
Drop defensive tests
---------
Co-authored-by: David Heinemeier Hansson <[email protected]>
0 commit comments