Revision 87529081-a2f2-4f62-9a27-a36b200abf72 - Code Golf Stack Exchange
# [Jelly], 5 [bytes]
Ḃœp⁸Ḣ
[Try it online!] or [verify all test cases].
### How it works
Ḃœp⁸Ḣ Main link. Argument: A (array)
Ḃ Bit; yield 1 for odd integers, 0 for even ones.
⁸ Yield A.
œp Partition A, splitting at 1's in the bit array.
This yields a 2D array of runs of even integers.
Ḣ Head; extract the first chunk.
[bytes]: https://github.com/DennisMitchell/jelly/wiki/Code-page
[Jelly]: http://github.com/DennisMitchell/jelly
[Try it online!]: http://jelly.tryitonline.net/#code=4biCxZNw4oG44bii&input=&args=WzQyLCAxNCwgNDIsIDQzLCA0MSwgNDA4MDYyMiwgMTcxNDgwMzcyXQ
[verify all test cases]: http://jelly.tryitonline.net/#code=4biCxZNw4oG44biiCsOH4oKsRw&input=&args=WzE0LCA0MiwgMjMyNCwgOTcwOTAsIDQwODA2MjIsIDE3MTQ4MDM3Ml0sIFs0MiwgMTQsIDQyLCAyMzI0XSwgWzcsMTQsNDJdLCBbXSwgWzE3MTQ4MDM3MiwgMTMsIDE0LCA0Ml0sIFs0MiwgMTQsIDQyLCA0MywgNDEsIDQwODA2MjIsIDE3MTQ4MDM3Ml0