R7RS

Revised^7 Report on the Algorithmic Language Scheme. (2013)

http://www.r7rs.org/


Lexical conventions

Datum Labels

#1#, #1=

Expressions

Primitive expression types

quote, ', lambda, if, set!, include, include-ci?

Derived expression types

cond, and, or, when, unless, cond-expand

let, let*, letrec, letrec*, let-values, let*-values, begin, do

delay, delay-force?, force, promise?, make-promise

make-parameter, parameterize

guard

quasiquote, `, unquote, ,, unquote-splicing, ,@

case-lambda

let-syntax, letrec-syntax, syntax-rules, syntax-error

Program structure

import, define, define-values, define-syntax,

Record-type definitions

define-record-type

Libraries

define-library?

Standard procedures

Equivalence predicates

eqv?, eq?, equal?

Numbers

number?, complex?, real?, rational?, integer?, exact?, inexact?, exact-integer??, finite?, infinite?, nan?, zero?, positive?, negative?, odd?, even?, max, min, +, *, -, /, abs, floor/?, floor-quotient?, floor-remainder?, truncate/?, truncate-quotient?, truncate-remainder?, quotient, remainder, modulo, gcd, lcm, numerator, denominator, floor, ceiling, truncate, round, rationalize, exp, log, sin, cos, tan, asin, acos, atan, square?, sqrt, exact-integer-sqrt, expt, make-rectangular, make-polar, real-part, imag-part, magnitude, angle, inexact, exact, number->string, string->number

Booleans

not, boolean?, boolean=?

Pairs and lists

pair?, cons, car, cdr, set-car!, set-cdr!, caar, cadr, cdar, cddr, null?, list?, make-list, list, length, append, reverse, list-tail, list-ref, list-set!?, memq, memv, member, assq, assv, assoc, list-copy

Symbols

symbol?, symbol->string, string->symbol

Characters

char?, char=?, char<?, char<=?, char>?, char>=?, char-ci=?, char-ci<?, char-ci<=?, char-ci>?, char-ci>=?, char-alphabetic?, char-numeric?, char-whitespace?, char-upper-case?, char-lower-case?, digit-value?, char->integer, integer->char, char-upcase, char-downcase, char-foldcase

Strings

string?, make-string, string, string-length, string-ref, string-set!, string=?, string-ci=?, stirng<??, string-ci<?, string<=?, string-ci<=?, string>?, string-ci>?, string>=?, string-ci>=?, string-upcase, string-downcase, string-foldcase?, substring, string-append, string->list, list->string, string-copy, string-copy!, string-fill!

Vectors

vector?, make-vector, vector, vector-length, vector-ref, vector-set!, vector->list, list->vector, vector->string?, string->vector?, vector-copy, vector-copy!, vector-fill!

Bytevectors

bytevector??, make-bytevector?, bytevector?, bytevector-length?, bytevector-u8-ref?, bytevector-u8-set!?, bytevector-copy?, bytevector-copy!?, bytevector-append?, utf8->string?, string->utf8?

Control features

procedure?, apply, map, string-map, vector-map, for-each, string-for-each, vector-for-each, call-with-current-continuation, call/cc, values, call-with-values

Exceptions

with-exception-handler, raise, raise-continuable?, error, error-object??, error-object-irritants?, read-error?, file-error??

Environments and evaluation

environment, scheme-report-environment, null-environment, interaction-environment, eval

Input and output

call-with-port?, call-with-input-file, call-with-output-file, input-port?, output-port?, textual-port??, binary-port?, port?, input-port-open??, output-port-open??, current-input-port, current-output-port, current-error-port, with-input-from-file, with-output-to-file, open-input-file, open-binary-input-file?, open-output-file, open-binary-output-file?, close-port, close-input-port, close-output-port, open-input-string, open-output-string, get-output-string, open-input-bytevector?, open-output-bytevector?, get-output-bytevector?

read, read-char, peek-char, read-line, eof-object?, eof-object, char-ready?, read-string, read-u8?, peek-u8?, u8-ready??, read-bytevector?

write, write-shared?, write-simple?, display, newline, write-char, write-string, write-u8?, write-bytevector?, flush-output-port

System interface

load, file-exists?, delete-file, command-line, exit, emergency-exit?, get-environment-variable?, get-environment-variables?, current-second?, current-jiffy?, jiffies-per-second?, features