[Agda] String -> Nat

Serge D. Mechveliani mechvel at botik.ru
Mon Apr 15 10:23:39 CEST 2013


Please,
what Standard library has for reading (parsing)  Nat  from String
(or List Char) ?
For example,  "10" -> suc suc suc suc suc suc suc suc suc suc zero.

I need to input Nat from a file, and use  readFile.
This produces  str : String  (may be Costring),  
then,  str  needs to convert to Nat.

Thanks,

------
Sergei


More information about the Agda mailing list