-
For getting data into Dex it would be useful to be able to parse a Float out of a String. I guess I'm looking for a function with a signature like
or anything vaguely like "read" in Haskell or "fscanf" in C. Obviously the compiler knows how to do this, but I haven't managed to find it surfaced in Dex. Is there anything like this that I'm missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@cyntsh figured out |
Beta Was this translation helpful? Give feedback.
-
Great question! I think this is one of the pieces we're missing at the moment. Nothing prevents us from reimplementing the In general, we've been talking for a while about writing a CSV library for Dex, and I imagine this would be one of the prerequisites for that. |
Beta Was this translation helpful? Give feedback.
Great question! I think this is one of the pieces we're missing at the moment. Nothing prevents us from reimplementing the
Read
typeclass in Dex, but it's code that has to be written. I might try to put something together today.In general, we've been talking for a while about writing a CSV library for Dex, and I imagine this would be one of the prerequisites for that.