Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.
PS C:\Users\Tara> clisp
i i i i i i i ooooo o ooooooo ooooo ooooo
I I I I I I I 8 8 8 8 8 o 8 8
I \ `+' / I 8 8 8 8 8 8
\ `-+-' / 8 8 8 ooooo 8oooo
`-__|__-' 8 8 8 8 8
| 8 o 8 8 o 8 8
------+------ ooooo 8oooooo ooo8ooo ooooo 8
Welcome to GNU CLISP 2.49 (2010-07-07)
Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2010
Type :h and hit Enter for context help.
[1]> ;distance between points
(setf x1 2)
2
[2]> (setf y1 1)
1
[3]> (setf x2 3)
3
[4]> (setf y2 6)
6
[5]> (setf distance (sqrt (+ (expt (- x2 x1) 2) (expt (- y2 y1) 2) )))
5.0990195
[6]> ;referencing x
(car (cddr '(a b x c d )))
X
[7]> (car (car (cddr '(a b (x) c d))))
X
[8]> (cadr (cadr (car '((a(b x c d))))))
X
[9]> ;investigating colors
(setf colors '(purple mauve fuschia coral copper goldenrod yellow))
(PURPLE MAUVE FUSCHIA CORAL COPPER GOLDENROD YELLOW)
[10]> (quote colors)
COLORS
[11]> 'colors
COLORS
[12]> colors
(PURPLE MAUVE FUSCHIA CORAL COPPER GOLDENROD YELLOW)
[13]> ( describe 'colors)
COLORS is the symbol COLORS, lies in #, is accessible in 1 package COMMON-LISP-USER, a
variable, value: (PURPLE MAUVE FUSCHIA CORAL COPPER GOLDENROD YELLOW).
# is the package named COMMON-LISP-USER. It has 2 nicknames CL-USER, USER.
It imports the external symbols of 2 packages COMMON-LISP, EXT and exports no symbols, but no package uses these
exports.
(PURPLE MAUVE FUSCHIA CORAL COPPER GOLDENROD YELLOW) is a list of length 7.
[14]> (describe colors)
(PURPLE MAUVE FUSCHIA CORAL COPPER GOLDENROD YELLOW) is a list of length 7.
[15]> (type-of 'colors)
SYMBOL
[16]> (type-of colors)
CONS
[17]> ( typep colors 'cons)
T
[18]> ( typep colors 'list )
T
[19]> ( typep colors 'symbol )
NIL
[20]> ( typep 'colors 'cons )
NIL
[21]>