Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 245 Bytes

alphanumeric-incrementing.md

File metadata and controls

28 lines (18 loc) · 245 Bytes

Alphanumeric incrementing

"1".next
#=> "2"

"a".next
#=> "b"

"1a".next
#=> "1b"

"1z".next
#=> "2a"

"1aa".next
#=> "1ab"

"1az".next
#=> "1ba"

"1aaz".next
#=> "1aba"

View Source