3 ms·
gWU`UAXYjT[ig\\eBWca looks like 20 characters to me, why would k.size return 19?
by antiterra 16y ago
gWU`UAXYjT[ig\\eBWca looks like 20 characters to me, why would k.size return 19?
- CodeMage 16y agoBecause \\ is an escape for \.
- jorgeortiz85 16y agoBecause Java/Scala strings use \ as an escape character, so the string "\\" parses as a string with a single backslash character, not two.