Roman numeral by murky-satyr

m={V:4,X:9,L:49,C:99,D:499,M:999}
m.d=0
lp{p v gt.e.e_(2).m{|a,b|n=m[a.ty]+1;n>m[b.ty]?n:-n}*?+}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page