| Core | |
| (mosh) | |
| Functions | |
| fasl-write | Write obj to binary port with Fast Loading binary format. |
| time | show time-usage |
| fasl-read | Read a object from binary port with Fast Loading binary format. |
| hashtable-for-each | Apply proc for each (key value) pair in hashtable. |
| bytevector-for-each | Apply proc for each byte in bytevector. |
| string-split | Split text with delimiter and return result as list. |
| call-with-string-io | Convenient string I/O procedure. |
| file->string | Read string from a file filename. |
| file->list | Read S-Expressions from a file filename. |
| format | Format arg … according to string. |
| current-directory | Returns current directory as string |
| set-current-directory! | Set current directory. |
| Functions | |
| fasl-write | Write obj to binary port with Fast Loading binary format. |
| time | show time-usage |
| fasl-read | Read a object from binary port with Fast Loading binary format. |
| hashtable-for-each | Apply proc for each (key value) pair in hashtable. |
| bytevector-for-each | Apply proc for each byte in bytevector. |
| string-split | Split text with delimiter and return result as list. |
| call-with-string-io | Convenient string I/O procedure. |
| file->string | Read string from a file filename. |
| file->list | Read S-Expressions from a file filename. |
| format | Format arg … according to string. |
| current-directory | Returns current directory as string |
| set-current-directory! | Set current directory. |
Convenient string I/O procedure.
(call-with-string-io str proc)
| str | string |
| proc | (lambda (in out) ...) |
output-string.
(define (call-with-string-io str proc)
(receive (out get-string) (open-string-output-port)
(let ([in (open-string-input-port str)])
(proc in out)<br>
(get-string))))Format arg … according to string.
(format port string . args) (format string . args)
| port | output port. #t for (current-output-port) and #f for string-output. |
| string | format string. |
| args | arguments for format string |
(format #t "one is ~d" 1) (format #t "my name is ~a" "Higepon") (format #t "my name is ~s" "Higepon") (format (current-error-port) "my name is ~s" "Higepon") (format "(+ ~d ~d) => ~d" 1 2 3)
unspecified or string.
(assoc-ref mosh-list mosh) (alist->eq-hash-table mosh interaction) (ungensym mosh)