On this page:
14.1 Typed miscellaneous utilities
hash-set**
with-output-file
or?
14.1.1 Untyped versions of miscellaneous utilities
hash-set**
with-output-file
or?
14.2 Untyped versions of misc
7.1

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))
Calls hash-set on the hash h for each key-value pair contained in each list of l*.

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.

procedure

(or? f ...)  ( A (U A #f))

  f : ( A Boolean)
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.

procedure

(or? f ...)  ( A (U A #f))

  f : ( A Boolean)
Untyped version.

14.2 Untyped versions of misc

 (require phc-toolkit/untyped/misc) package: phc-toolkit