1 | get("#517") -- mergeTexts
|
2 | |
3 | -- assumes tbl has two columns |
4 | function asciiTable(tbl) |
5 | local c1, c2 = {}, {}
|
6 | for i = 1, #tbl do |
7 | c1[i] = tbl[i][1] |
8 | c2[i] = tbl[i][2] |
9 | end |
10 | return mergeTexts(c1, c2) |
11 | end |
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #521 |
| Snippet name: | asciiTable |
| Eternal ID of this version: | #521/1 |
| Text MD5: | 67ef49102b6b680d81c9a30b0ff772b4 |
| Author: | stefan |
| Category: | |
| Type: | Lua code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-03-11 18:39:48 |
| Source code size: | 219 bytes / 11 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 871 / 220 |
| Referenced in: | [show references] |