DEV Community

Discussion on: Weekly Challenge #080 Task #2 :: Raku

Collapse
jeongoon profile image
Myoungjin Jeon Author • Edited on

Oh.. I found shorter one.

sub MAIN{(|@_,|((|@_,|@_.reverse).rotor(2=>-1).grep({[<] $_}))).elems.say}