Comma quibbling: Difference between revisions

no edit summary
(Add 8080 assembly version)
No edit summary
Line 3,546:
</pre>
 
=={{header|SenseTalk}}==
<lang sensetalk>Quibble [] // (No input words).
Quibble ["ABC"]
Quibble ["ABC", "DEF"]
Quibble ["ABC", "DEF", "G", "H"]
 
to Quibble with wordList
if the number of items in wordList is ...
... 0 then put "{}"
... 1 then put "{" & item 1 of wordList & "}"
... else put "{" & (items first to penultimate of wordList) joined by ", " & " and " & the last item of wordlist & "}"
end if
end Quibble
</lang>
 
{{out}}
<pre>
{}
{ABC}
{ABC and DEF}
{ABC, DEF, G and H}
</pre>
=={{header|Sidef}}==
<lang ruby>func comma_quibbling(words) {