Odd words: Difference between revisions
m
→{{header|Phix}}: use GT_LF_STRIPPED
m (→{{header|Phix}}: use GT_LF_STRIPPED) |
|||
Line 220:
=={{header|Phix}}==
<lang Phix>sequence words =
function odd(integer /*ch*/, idx) return remainder(idx,2)=1 end function
function oddch(string word) return filter(word,odd) end function
Line 232:
=== Alternative ===
Slightly more traditional, same output.
<lang Phix>sequence words =
res = {}
for i=1 to length(words) do
|