Skip to content

Instantly share code, notes, and snippets.

@cellularmitosis
Last active April 10, 2023 22:44
Show Gist options
  • Save cellularmitosis/595a39b0caa26102df89094dbd0a0fb3 to your computer and use it in GitHub Desktop.
Save cellularmitosis/595a39b0caa26102df89094dbd0a0fb3 to your computer and use it in GitHub Desktop.
Scheme resources

Scheme notes

Quick Intros

Resources

Community

Books

The Lambda Papers

Revised Reports, SRFI's, Packages

YouTube videos

Implementations

CHICKEN Scheme

Cheat Sheet

Working with lists

Creating a list:

(cons 1 (cons 2 (cons 3 '())))
(quote (1 2 3))
(list 1 2 3)

Prepending to a list:

(define x (list 2 3))
(set! x (cons 1 x))  ; x is now (1 2 3)

Working with vectors

Creating a vector:

(vector 1 2 3)
#(1 2 3)

Indexed access:

(define x (vector 10 11 12))
(vector-ref x 0)  ; => 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment