RosettaCodeData/Task/Nth/J/nth-1.j
2015-11-18 06:14:39 +00:00

2 lines
89 B
Text

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