Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Nth/PicoLisp/nth.l
Normal file
18
Task/Nth/PicoLisp/nth.l
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
(de rangeth (A B)
|
||||
(mapcar
|
||||
'((I)
|
||||
(pack I
|
||||
(if (member (% I 100) (11 12 13))
|
||||
'th
|
||||
(case (% I 10)
|
||||
(1 'st)
|
||||
(2 'nd)
|
||||
(3 'rd)
|
||||
(T 'th) ) ) ) )
|
||||
(range A B) ) )
|
||||
|
||||
(prinl (glue " " (rangeth 0 25)))
|
||||
(prinl (glue " " (rangeth 250 265)))
|
||||
(prinl (glue " " (rangeth 1000 1025)))
|
||||
|
||||
(bye)
|
||||
Loading…
Add table
Add a link
Reference in a new issue