RosettaCodeData/Task/Nth/J/nth-1.j
2023-07-01 13:44:08 -04:00

2 lines
89 B
Text

suf=: (;:'th st nd rd th') {::~ 4 <. 10 10 (* 1&~:)~/@#: ]
nth=: [: ;:inv (": , suf)each