[ create a new paste ] login | about

Link: http://codepad.org/SomCSysg    [ raw code | output | fork ]

nepta - Lua, pasted on Nov 5:
1
2
3
4
5
6
7
8
s = "Please don't reinvent the wheel."
chunks = {}

for substring in s:gmatch("%S+") do
   table.insert(chunks, substring)
end

print(table.concat(chunks, ","))


Output:
1
Please,don't,reinvent,the,wheel.


Create a new paste based on this one


Comments: