Revision a3ebefa2-150a-47f4-af0d-5c1d65e961f7 - 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 in the stack, and leaves the output array in 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 によって変換されたページ (->オリジナル) /