Revision bd9cc2e2-6f0f-420e-9209-63a2d0d6fa48 - Code Golf Stack Exchange

# [CJam](https://sourceforge.net/projects/cjam/), 11 bytes

_Thanks to @Dennis for two corrections and one byte off!_

 {1+_2f%1#<}

This is a code block (equivalent to a function; allowed by default) that expects the input array on the stack, and leaves the output array on the stack.

[__Try it online!__](http://cjam.tryitonline.net/#code=cX4gICAgICAgICAgICBlIyB0YWtlIGlucHV0IGZyb20gc3RkaW4KezErXzJmJTEjPH0gICBlIyBhY3R1YWwgY29kZSBhcyBhIGJsb2NrCn4gICAgICAgICAgICAgZSMgZXhlY3V0ZSBibG9jawpgICAgICAgICAgICAgIGUjIHN0cmluZyByZXByZXNlbnRhdGlvbg&input=WzQyIDE0IDQyIDQzIDQxIDQwODA2MjIgMTcxNDgwMzcyXQ)

### Explanation

 { } e# define code block
 1+ e# attach 1 at the end of the array
 _ e# duplicate
 2f% e# modulo 2 of each entry
 1# e# find index of first occurrence of 1
 < e# slice before

AltStyle によって変換されたページ (->オリジナル) /