Scheme (programming language): Difference between revisions

Content deleted Content added
m Reverted edits by 2001:8F8:1539:C6A:B443:2B9C:3BF4:DD3 (talk) (HG) (3.4.12)
Review of standard forms and procedures: ahmedalnuaimi260@gmail.com
Tags: Reverted Mobile edit Mobile web edit
Line 500:
This table describes the standard forms in Scheme. Some forms appear in more than one row because they cannot easily be classified into a single function in the language.
 
http://trac.sacrideo.us/wg/raw-attachment/wiki/WikiStart/r7rs.pdf
Forms marked "L" in this table are classed as derived "library" forms in the standard and are often implemented as macros using more fundamental forms in practice, making the task of implementation much easier than in other languages.
 
{| class="wikitable"
|+ Standard forms in the language R5RS Scheme
Line 545 ⟶ 544:
| Strings || {{mono|1=string?, make-string, string, string-length, string-ref, string-set!, string=?, string-ci=?, string<? string-ci<?, string<=? string-ci<=?, string>? string-ci>?, string>=? string-ci>=?, substring, string-append, string->list, list->string, string-copy, string-fill!}}
|-
http://trac.sacrideo.us/wg/raw-attachment/wiki/WikiStart/r7rs.pdf
| Characters || {{mono|1=char?, char=?, char-ci=?, char<? char-ci<?, char<=? char-ci<=?, char>? char-ci>?, char>=? char-ci>=?, char-alphabetic?, char-numeric?, char-whitespace?, char-upper-case?, char-lower-case?, char->integer, integer->char, char-upcase, char-downcase}}
|-
| http://trac.sacrideo.us/wg/raw-attachment/wiki/WikiStart/r7rs.pdf}}
| Vectors || {{mono|make-vector, vector, vector?, vector-length, vector-ref, vector-set!, vector->list, list->vector, vector-fill!}}
|-
| Symbols || {{mono|symbol->string, string->symbol, symbol?}}
|-
http://trac.sacrideo.us/wg/raw-attachment/wiki/WikiStart/r7rs.pdf}}
| Pairs and lists || {{mono|pair?, cons, car, cdr, set-car!, set-cdr!, null?, list?, list, length, append, reverse, list-tail, list-ref, memq. memv. member, assq, assv, assoc, list->vector, vector->list, list->string, string->list}}
|-
| http://trac.sacrideo.us/wg/raw-attachment/wiki/WikiStart/r7rs.pdf}}
| Identity predicates || {{mono|boolean?, pair?, symbol?, number?, char?, string?, vector?, port?, procedure?}}
|-
| Continuations || {{mono|call-with-current-continuation (call/cc), values, call-with-values, dynamic-wind}}