Comma quibbling: Difference between revisions
Content added Content deleted
Not a robot (talk | contribs) (Add 8080 assembly version) |
No edit summary |
||
Line 3,546: | Line 3,546: | ||
</pre> |
</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}}== |
=={{header|Sidef}}== |
||
<lang ruby>func comma_quibbling(words) { |
<lang ruby>func comma_quibbling(words) { |