2 Old Functions
procedure
(apply proc v ... lst) → any
proc : procedure? v : any/c lst : list?
procedure
(open-input-file file [mode module-mode]) → input-port?
file : path-string? mode : (one-of/c 'text 'binary) = 'binary module-mode : (or-of/c 'module 'none) = 'none
procedure
(open-output-file file [mode exists]) → input-port?
file : path-string? mode : (one-of/c 'text 'binary) = 'binary
exists :
(one-of/c 'error 'append 'update 'replace 'truncate 'truncate/replace) = 'error
procedure
(open-input-output-file file [mode exists])
→
input-port? output-port? file : path-string? mode : (one-of/c 'text 'binary) = 'binary
exists :
(one-of/c 'error 'append 'update 'replace 'truncate 'truncate/replace) = 'error
procedure
(with-input-from-file file thunk [mode]) → any
file : path-string? thunk : (-> any) mode : (one-of/c 'text 'binary) = 'binary
procedure
(with-output-to-file file thunk [mode exists]) → any
file : path-string? thunk : (-> any) mode : (one-of/c 'text 'binary) = 'binary
exists :
(one-of/c 'error 'append 'update 'replace 'truncate 'truncate/replace) = 'error
procedure
(call-with-input-file file proc [mode]) → any
file : path-string? proc : (input-port? -> any) mode : (one-of/c 'text 'binary) = 'binary
procedure
(call-with-output-file file proc [mode exists]) → any
file : path-string? proc : (output-port? -> any) mode : (one-of/c 'text 'binary) = 'binary
exists :
(one-of/c 'error 'append 'update 'replace 'truncate 'truncate/replace) = 'error
Changed in version 6.0.1.6 of package compatibility-lib: Added the module-mode argument to open-input-file.
procedure
(syntax-object->datum stx) → any
stx : syntax?
procedure
(datum->syntax-object ctxt v srcloc [prop cert]) → syntax?
ctxt : (or/c syntax? false/c) v : any/c
srcloc :
(or/c syntax? false/c (list/c any/c (or/c exact-positive-integer? false/c) (or/c exact-nonnegative-integer? false/c) (or/c exact-nonnegative-integer? false/c) (or/c exact-positive-integer? false/c)) (vector/c any/c (or/c exact-positive-integer? false/c) (or/c exact-nonnegative-integer? false/c) (or/c exact-nonnegative-integer? false/c) (or/c exact-positive-integer? false/c))) prop : (or/c syntax? false/c) = #f cert : (or/c syntax? false/c) = #f
procedure
(module-identifier=? a-id b-id) → boolean?
a-id : syntax? b-id : syntax?
procedure
(module-transformer-identifier=? a-id b-id) → boolean?
a-id : syntax? b-id : syntax?
procedure
(module-template-identifier=? a-id b-id) → boolean?
a-id : syntax? b-id : syntax?
procedure
(module-label-identifier=? a-id b-id) → boolean?
a-id : syntax? b-id : syntax?
procedure
(free-identifier=? a-id b-id) → boolean?
a-id : syntax? b-id : syntax?
The free-identifier=? procedure returns
(and (eq? (syntax-e a) (syntax-e b)) (module-identifier=? a b))
procedure
(make-namespace [mode]) → namespace?
mode : (one-of/c 'initial 'empty) = 'initial
procedure
(namespace-transformer-require req) → void?
req : any/c
procedure
(transcript-on filename) → any
filename : any/c
procedure
(transcript-off) → any
procedure
(hash-table? v) → hash-table?
v : any/c (hash-table? v flag) → hash-table? v : any/c flag : (one-of/c 'weak 'equal 'eqv) (hash-table? v flag flag2) → hash-table? v : any/c flag : (one-of/c 'weak 'equal 'eqv) flag2 : (one-of/c 'weak 'equal 'eqv)
procedure
(make-hash-table flag) → hash-table? flag : (one-of/c 'weak 'equal 'eqv) (make-hash-table flag flag2) → hash-table? flag : (one-of/c 'weak 'equal 'eqv) flag2 : (one-of/c 'weak 'equal 'eqv)
'weak —
creates a hash table with weakly-held keys via make-weak-hash, make-weak-hasheq, or make-weak-hasheqv. 'equal —
creates a hash table that compares keys using equal? instead of eq? using make-hash or make-weak-hash. 'eqv —
creates a hash table that compares keys using eqv? instead of eq? using make-hasheqv or make-weak-hasheqv.
By default, key comparisons use eq? (i.e., the hash table is created with make-hasheq). If flag2 is redundant or 'equal is provided with 'eqv, the exn:fail:contract exception is raised.
procedure
(make-immutable-hash-table assocs)
→ (and/c hash-table? immutable?) assocs : (listof pair?) (make-immutable-hash-table assocs flag) → (and/c hash-table? immutable?) assocs : (listof pair?) flag : (one-of/c 'equal 'eqv)
value
value
value
value
value
value
value
value
value
value
value
value
value
procedure
(collection-file-path file collection ...+) → path?
file : path-string? collection : path-string?
procedure
(collection-path collection ...+) → path?
collection : path-string?