Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
23
Task/Comma-quibbling/MAXScript/comma-quibbling-1.max
Normal file
23
Task/Comma-quibbling/MAXScript/comma-quibbling-1.max
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
fn separate words: =
|
||||
(
|
||||
if words == unsupplied or words == undefined or classof words != array then return "{}"
|
||||
else
|
||||
(
|
||||
local toReturn = "{"
|
||||
local pos = 1
|
||||
while pos <= words.count do
|
||||
(
|
||||
if pos == 1 then (append toReturn words[pos]; pos+=1)
|
||||
else
|
||||
(
|
||||
if pos <= words.count-1 then (append toReturn (", "+words[pos]); pos+=1)
|
||||
else
|
||||
(
|
||||
append toReturn (" and " + words[pos])
|
||||
pos +=1
|
||||
)
|
||||
)
|
||||
)
|
||||
return (toReturn+"}")
|
||||
)
|
||||
)
|
||||
8
Task/Comma-quibbling/MAXScript/comma-quibbling-2.max
Normal file
8
Task/Comma-quibbling/MAXScript/comma-quibbling-2.max
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
separate words:#()
|
||||
"{}"
|
||||
separate words:#("ABC")
|
||||
"{ABC}"
|
||||
separate words:#("ABC","DEF")
|
||||
"{ABC and DEF}"
|
||||
separate words:#("ABC","DEF","G","H")
|
||||
"{ABC, DEF, G and H}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue