Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
21
Task/Nth/Pluto/nth.pluto
Normal file
21
Task/Nth/Pluto/nth.pluto
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
local fmt = require "fmt"
|
||||
|
||||
local ranges = {range(0, 25), range(250, 265), range(1000, 1025)}
|
||||
|
||||
print("Without apostrophes:\n")
|
||||
for ranges as r do
|
||||
fmt.tprint("%6s", r:mapped(|e| -> fmt.ord(e)), 10)
|
||||
print()
|
||||
end
|
||||
|
||||
print("With apostrophes:\n")
|
||||
|
||||
local function apos(e)
|
||||
local o = fmt.ord(e)
|
||||
return o:sub(1, -3) .. "'" .. o:sub(-2)
|
||||
end
|
||||
|
||||
for ranges as r do
|
||||
fmt.tprint("%7s", r:mapped(|e| -> apos(e)), 10)
|
||||
print()
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue