(defn add-phone
"Add a phone number to a given service. There are a few steps we have to take:
- Validate the service name and token
...
Lisp Clojure noob code
(defn- index-maze
([maze] (index-maze maze 0 0 {}))
...
Lisp Index a two level list
by https://www.google.com/accounts/o8/id?id=AItOawkfT8DGpzL_jAHEBq6xyFsFNpoCko-ILis,
July 17, 2011 08:17,
No refactoring, tagged with clojure map
This is in fact clojure cod...
(define (compose . fns) (define (make-chain fn chain) ...
Lisp Generalised composition
by Chris Jester-Young,
April 22, 2009 04:24,
2 refactorings, tagged with functional, scheme, compose
Most people have worked wit...
(define (remove-subnodes n L) (cond ((null? L) `()) ((= n (car L)) L) ...
Lisp Super Simple Parser in Scheme
This is written in a dialec...
#!/usr/bin/guile \ -e main -s ...
Lisp CipherSaber
by Chris Jester-Young,
June 22, 2008 05:39,
1 refactoring, tagged with encryption, scheme, ciphersaber
Apparently the last Scheme ...
;; Turns a flat-list into a list of n-sized lists ;; Examples: ;; (group-by '(1 2 3 4) 2) => ((1 2) (3 4)) ...
Lisp Group-by
by omouse.vox.com,
December 21, 2007 19:55,
5 refactorings, tagged with scheme, lists, flatlist, group
Tested on MzScheme
; 5*O(n)
(defun next-lex (a)
(let* ((r (reverse a))
...
Lisp Lexicographically next perm...
by Kartik Agaram,
October 04, 2007 00:19,
12 refactorings
Given a list of numbers, ge...
(defun header-encode (string) (if (find-if (lambda (c) (> (char-code c) 127)) string) ...
Lisp folding of non-ascii long h...
by luser.myopenid.com/,
October 02, 2007 11:37,
2 refactorings
I would like to use header-...
Hey, I'm new to clojure and...