In ruby, if [1,2,3,4].rest => [2,3,4], should [].rest be [] or nil? Asking because I want to implement it for MRI. /cc @steveklabnik
-
-
@steveklabnik @DaveWilkinsonII also, apparently his suggestions are not equivalent: https://bugs.ruby-lang.org/issues/6727#note-3 … -
@duckinator@steveklabnik it's true; drop makes rest redundant. I want the stdlib to be smaller, so you'll find no love from me. :) - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.