Tomm0017 / rsmod

New repository: https://github.com/rsmod/rsmod
https://github.com/rsmod/rsmod
Apache License 2.0
123 stars 100 forks source link

Adds some string and int extension methods #48

Closed tristonplummer closed 5 years ago

tristonplummer commented 5 years ago

What has been done?

String.prefixAn()

Usage:

val name = "adamantite bar".prefixAn() // an adamantite bar
val name = "runite bar".prefixAn() // a runite bar

Int.toLiteral()

val literal = 73.toLiteral() // seventy-three
val literal = 22.toLiteral() // twenty-two