["A9", "B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "C0", "C1",<<partially omitted>>
[]=================================================================================
Hello, everyone.
I hava a question about range operator with string operands.
=================================================================================
irb(main):001:0> ("A9".."A_").to_a
["A9", "B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "C0", "C1",<<partially omitted>>
"Y8", "Y9", "Z0", "Z1", "Z2", "Z3", "Z4", "Z5", "Z6", "Z7", "Z8", "Z9"] irb(main):002:0> ("B0".."A_").to_a
[]=================================================================================
I feel it doesn't make sense.
I mean, I don't know why ("A9".."A_").to_a includes items from "B0" to "Z9". So, could someone tell me what chapter/section I should read in the reference manual or other documents?
Thank you.
note : ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
on ubuntu 14.04 LTS.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 496 |
Nodes: | 16 (2 / 14) |
Uptime: | 64:13:00 |
Calls: | 9,762 |
Calls today: | 3 |
Files: | 13,745 |
Messages: | 6,185,763 |