Scheme: What type is read?

When I read from user input from the console in scheme, what is the type that I need to use if i’m converting from that type into something I want?

For example
(string->number “20”) converts the string into a number, what is the syntax for this regarding a read?

FOR EXAMPLE

(define input(read)
    (let ((r read))
    (????->number r)))


Source: syntax

Leave a Reply