Revision e8412933-61da-46dc-8b0f-f2c4b89695f5 - Code Golf Stack Exchange

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

 {_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=cX4gICAgICAgICAgZSMgdGFrZSBpbnB1dCBmcm9tIHN0ZGluCntfMmYlMSM8fSAgIGUjIGFjdHVhbCBjb2RlCn4gICAgICAgICAgIGUjIGV4ZWN1dGUKYCAgICAgICAgICAgZSMgc3RyaW5nIHJlcHJlc2VudGF0aW9u&input=WzQyIDE0IDQyIDQzIDQxIDQwODA2MjIgMTcxNDgwMzcyXQ)

###Explanation

 { } e# define code block
 _ e# duplicate input array
 2f% e# modulo 2 of each entry
 1# e# index of first occurrence of 1
 < e# slice before

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