"Given the scrollY integer (always non-negative) and an array of non-negative integers (with at least one element)" - In Ruby, I'm all for a check to make sure the array of non-negative integers actually exists, but the language of the kata strongly indicates that this won't ever be the case and will always have at least one element. Perhaps worth editing the language?
CoffeeScript, Crystal, Elixir, Factor, Clojure, Go, Julia, Lua, PHP, R, Racket, Reason, and TypeScript translations.
"Given the scrollY integer (always non-negative) and an array of non-negative integers (with at least one element)" - In Ruby, I'm all for a check to make sure the array of non-negative integers actually exists, but the language of the kata strongly indicates that this won't ever be the case and will always have at least one element. Perhaps worth editing the language?