racket/collects/little-helper/indexer/planet/intersperse.scm
Jens Axel Soegaard ac47e02961 Initial checkin of Little Helper.
Little Helper contains a full text search engine. 
Currently it indexes all html-files in /collects/doc.
A mockup web-interface is present in order to facilitate easy experimentation with searches.
Run run-indexer to generate the index for your documentation dir. 
Run launch to start a web-server with the search interface.
Note: Currently assumes w3m is in your path (used to precompute the 
           preview-snippets shown in the search results.

svn: r8836
2008-03-01 13:26:18 +00:00

11 lines
255 B
Scheme

#lang scheme
(provide intersperse)
(define (intersperse seperator xs)
(cond
[(null? xs) '()]
[(null? (cdr xs)) xs]
[else (cons (car xs)
(cons seperator
(intersperse seperator (cdr xs))))]))