drforr / perl6-slang-roman

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Slang::Roman

Allow your integers to be Roman numerals.

  • my Int $r = 0rMMXVI; # $r == 2016
  • Eventually: printf "%{roman}d", $r; # MMXVI

What it doesn't do [yet]

  • printf

#Use

use Slang::Roman;

say 0rXIV;

14

##Better Examples

Check out t/01_basic.t

About


Languages

Language:Perl 6 100.0%