Skip to content

Instantly share code, notes, and snippets.

@VoQn
Created April 4, 2010 14:29
Show Gist options
  • Save VoQn/355435 to your computer and use it in GitHub Desktop.
Save VoQn/355435 to your computer and use it in GitHub Desktop.
#! /opt/local/bin/gosh -i
;; -*- mode: scheme; coding: utf-8 -*-
;;; SICP ex2.45
;;; define "split" procedure
(define right-split (split beside below))
(define up-split (split below beside))
(define (split first-modify second-modify)
(lambda (painter)
(first-modify painter (second-modify painter painter))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment