Comma quibbling: Difference between revisions
Content deleted Content added
m →{{header|C#}}: whitespace |
Complete Rust output for no input words |
||
Line 274: | Line 274: | ||
=={{header|Rust}}== |
=={{header|Rust}}== |
||
{{incomplete|Rust|output for no input words missing.}} |
|||
<lang Rust>fn quibble(seq: &[~str]) -> ~str { |
<lang Rust>fn quibble(seq: &[~str]) -> ~str { |
||
match seq { |
match seq { |
||
Line 284: | Line 283: | ||
fn main() { |
fn main() { |
||
println(quibble([])); |
|||
println(quibble([~"ABC"])); |
println(quibble([~"ABC"])); |
||
println(quibble([~"ABC", ~"DEF"])); |
println(quibble([~"ABC", ~"DEF"])); |
||
Line 290: | Line 290: | ||
{{out}} |
{{out}} |
||
<pre> |
<pre> |
||
{} |
|||
{ABC} |
{ABC} |
||
{ABC and DEF} |
{ABC and DEF} |