Skip to content

Instantly share code, notes, and snippets.

@miyamuko
Created September 29, 2011 14:16
Show Gist options
  • Select an option

  • Save miyamuko/1250808 to your computer and use it in GitHub Desktop.

Select an option

Save miyamuko/1250808 to your computer and use it in GitHub Desktop.
(byte-compile-file "test.l")
;=> Compiling hoge...
; done.
; t
(load "test.lc")
;=> t
(hoge)
;=> (4 5 6 7 8 9 10)
(in-package :user)
(eval-when (:compile-toplevel :load-toplevel :execute)
(require "cmu_loop")
(require "ansi-loop")
(shadowing-import (intern "loop" :ansi-loop))
)
(defun hoge ()
(loop for i from 0 to 10
when (and (> i 3) i)
collect it))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment