grain icon indicating copy to clipboard operation
grain copied to clipboard

Stdlib: Need a way to parse a string into a number

Open phated opened this issue 5 years ago • 2 comments

Day 2 of Advent of Code has you parsing a string like:

1-3 a: abcde
1-3 b: cdefg
2-9 c: ccccccccc

Into a ruleset to match, with the numbers being a min-max range. I'm going to implement this as a constant pattern match right now, but we should have a way to parse a string into a number.

phated avatar Dec 08 '20 04:12 phated

@ospencer do we want to close this now that parseInt was added or do we want to leave open until we have parseNumber?

phated avatar Dec 09 '21 17:12 phated

I think we can close once parseFloat lands.

ospencer avatar May 27 '22 20:05 ospencer