Closed hg-pyun closed 5 months ago
// The example answer is 3, 4, 5, but the correct answer is 2, 3, 4, 5, 1, 2 const iter = dropUntil((a) => a < 3, [1, 2, 3, 4, 5, 1, 2])
I think it is a mistake copying and pasting dropWhile. Considering the context, I think it's the right way to change it as follows.
dropWhile
const iter = dropUntil((a) => a > 3, [1, 2, 3, 4, 5, 1, 2]);
As-Is
To-Be
I think it is a mistake copying and pasting
dropWhile
. Considering the context, I think it's the right way to change it as follows.