==== Haskell: 前スレ>>767 ==== ys1 = [x | x <- xs1, if test x then if test_1 then test_1_1 else test_1_2 else if test_2 then test_2_1 else test_2_2 ] ==== Python: 前スレ>>695(上段) ==== ys = [ x for x in xs if ( (test1_1 if test1 else test1_2) if test else (test2_1 if test2 else test2_2) ) ]