LoginSignup
3
2

More than 3 years have passed since last update.

Common Lispまとめ

Last updated at Posted at 2018-03-17

本記事について

本記事は私がCommon Lispについて調べたことの備忘録的まとめです。

Common Lisp まとめ

環境構築

QuickLisp

  1. 公式からquicklisp.lispをホームディレクトリにダウンロード

  2. 以下コマンドを実行

(load "./quicklisp.lisp")
(quicklisp-quickstart:install)
(ql:add-to-init-file)

Lisp + Vim

プロジェクト作成

cl-projectを使う方法

(ql:quickload :cl-project)
(cl-project:make-project #p"myproj/")

データ型

型を判定したい/取得したい

  • 型を判定
(defvar *x* 1)
; => *x*
(typep *x* 'integer)
; => T
  • 型を取得
(defvar *x* 1)
(type-of 1)
; => FIXNUM
(type-of *x*)
; => FIXNUM
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2