scan
scan string format ?varName ...?
Reads values from a string with a template of format. With variables, it sets them and gives the count of values that it read. Without variables, it gives the values as a list.
Examples
A click on an example runs it in the shell of the page.
scan "12 apples" "%d %s":12 applesscan "x=7" "x=%d" n:1
Facts
- Capability: none.
- Compute cost: one compute unit for the call, and more for the commands that it runs.