git.fiddlerwoaroof.com
Browse code

periodic commit

fiddlerwoaroof authored on 23/05/2016 22:49:21
Showing 5 changed files
... ...
@@ -31,7 +31,7 @@
31 31
 (defparameter outp nil)
32 32
 (with-generator (to-ten) x
33 33
   (with-generator (to-ten) y
34
-    2))
34
+    (push (* x y) outp)))
35 35
 
36 36
 (defpackage generator-lambda
37 37
   (:use :cl))
38 38
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+(defpackage :lambda-test
2
+  (:use cl)
3
+  (:export :mksym :alambda))
4
+(in-package :lambda-test)
5
+
6
+(defun mksym (str)
7
+  (intern (string-upcase str) *package*))
8
+
9
+(defmacro alambda ((&optional (nargs 1)) &body body)
10
+  (let ((args (loop for x from 1 to nargs collect (mksym (format nil "$~a" x)))))
11
+    `(lambda ,args ,@body)))
12
+
13
+(defmacro /. ((&optional (nargs 1)) &body body)
14
+  `(alambda (,nargs) ,@body))
0 15
new file mode 100644
... ...
@@ -0,0 +1,2 @@
1
+(ql:quickload :manardb)
2
+
0 3
new file mode 100644
... ...
@@ -0,0 +1,6 @@
1
+(ql:quickload :elephant)
2
+(ql:quickload :clsql)
3
+
4
+(use-package :elephant)
5
+
6
+(open-store '(:clsql (:sqlite "test-db/sqlite.db")))
0 7
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+(ql:quickload :qtools)
2
+(ql:quickload :cells)
3
+(ql:quickload :qtcore)
4
+(ql:quickload :qtgui)
5
+(ql:quickload :parse-number)
6
+(ql:quickload :alexandria)
7
+(ql:quickload :swank)
8
+
9
+(sb-ext:save-lisp-and-die "qtools-repl" :executable t)