(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

by Kevin Burke, October 16, 2011 22:51, 1 refactoring, tagged with clojure

Hey, I'm new to clojure and...

41910a452554b187d044c00c576866b1 Talk
(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...

55502f40dc8b7c769880b10874abc9d0 Talk
(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...

729442eea8d8548842a6e0947e333c7b Talk
(define (remove-subnodes n L)
  (cond ((null? L) `())
	((= n (car L)) L)
...

Lisp Super Simple Parser in Scheme

by rooster.myopenid.com, September 09, 2008 05:35, 1 refactoring, tagged with lisp scheme

This is written in a dialec...

4034df6027cbecf3f4a19a711a248536 Talk
#!/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 ...

729442eea8d8548842a6e0947e333c7b Talk
;; 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

55502f40dc8b7c769880b10874abc9d0 Talk
; 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...

14d99459914c594998d2506db1e868c2 Talk
(defun transpose (m)
       (cond
        ((null (car m)) nil)
...

Lisp matrix transpose

by mrsheep, October 03, 2007 11:12, 5 refactorings

simpler? shorter?

55502f40dc8b7c769880b10874abc9d0 Talk
(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-...

55502f40dc8b7c769880b10874abc9d0 Talk