File: test3.esh

package info (click to toggle)
esh 0.8-7
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 508 kB
  • ctags: 542
  • sloc: ansic: 3,608; lisp: 166; makefile: 72
file content (16 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

# Note: if you are operating on large lists and you don't care about
# return values, you're better off using "while" instead.

(define for-each
  ~(if ~(not-null? (rot))
       ~(begin ((rot) (rot))
	       (for-each (cdr (l-stack))))
       ()))


(define starrify
  ~(squish * (top) *))

(print (for-each starrify foo bar baz) (nl))