Odd words: Difference between revisions
m
→{{header|Ruby}}: improved somewhat
(→{{header|Ruby}}: Add Ruby) |
m (→{{header|Ruby}}: improved somewhat) |
||
Line 1,410:
=={{header|Ruby}}==
<syntaxhighlight lang="ruby">dict
next if w.size < 9
odd = w.chars.each_slice(2).map(&:first).join
puts [w.ljust(14), odd].join(" ") if
end</syntaxhighlight>
{{out}}
Line 1,431:
terminable trial
</pre>
=={{header|Rust}}==
<syntaxhighlight lang="rust">use std::collections::BTreeSet;
|