8.14.0.2
14 Miscellaneous utilities
14.1 Typed miscellaneous utilities
(require phc-toolkit/misc) | package: phc-toolkit |
procedure
(hash-set** h l*) → (HashTable K V)
h : (HashTable K V) l* : (Listof (Pairof K V))
syntax
(with-output-file [var filename] maybe-mode maybe-exists body …)
var = Identifier filename = (ExpressionOf String) maybe-mode =
| #:mode mode maybe-exists =
| #:exists exists
Executes body with var bound to the
output-port? obtained when opening the file. The
port is automatically closed at the end of the
body. This is a macro version of
call-with-output-file.
Typed version of or? from the
predicates package, which returns the value
itself when all predicates are satisfied instead of just
returning #t.
14.1.1 Untyped versions of miscellaneous utilities
(require phc-toolkit/untyped) | package: phc-toolkit |
procedure
(hash-set** h l*) → (HashTable K V)
h : (HashTable K V) l* : (Listof (Pairof K V))
Untyped version.
syntax
(with-output-file [var filename] maybe-mode maybe-exists body …)
var = Identifier filename = (ExpressionOf String) maybe-mode =
| #:mode mode maybe-exists =
| #:exists exists
Untyped version.
Untyped version.
14.2 Untyped versions of misc
(require phc-toolkit/untyped/misc) | package: phc-toolkit |