question

Functions

pub fn question(prompt: String, cb: fn(String) -> a) -> Nil

Writes prompt output. A callback is invoked with the user’s input string

Example

 question("The original prompt engineering?\n", fn (answer) {
   io.println("Answer: " <> answer)
 }) 
Search Document