Cool Code

From Sch3m3rs Stuph

Revision as of 01:17, 22 March 2008 by Admin (Talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)

Cool Code

This page is for interesting bits and bobbles of coding:

    Format is:
        Name for code
        Code
        What it does



Display List W/ line-breaks

(define (displayx x)

 (begin
   (display x)
   (newline)))

(define (for-each-disp a-list)

 (for-each displayx a-list))

When given a list it takes each item displays it in the interactions window with each piece separated with a line break.


Personal tools