roc
roc copied to clipboard
Repl suggests Str.strToNum, but Str module does not expose that function
Here's the output from a roc repl
session which shows it listing the function Str.strToNum
as one which is available to the user, but the Str
module does not expose that function:
» Str.strToInt "1"
── NOT EXPOSED ─────────────────────────────────────────────────────────────────
The Str module does not expose `strToInt`:
4│ Str.strToInt "1"
^^^^^^^^^^^^
Did you mean one of these?
Str.strToNum
Str.toNat
Str.toI64
Str.toI32
» Str.strToNum "1"
── UNRECOGNIZED NAME ───────────────────────────────────────────────────────────
The Str module does not expose anything by the name strToNum.