(defn right-split
(split beside below))
(defn up-split
(split below beside))
Lets note that the only thing different between the right and up splits is the last line:
- right-split: (beside (below m m) painter))))
- up-split: (below (beside m m) painter))))
Which means that we need to return a function which takes a painter and an
n . Inside of that function we need to use the arguments (in lexical scope)
to the split function.
|