This is my Clojure solution to Chapter 1, Exercise 42:
(ns sicp.ch1.ex42 (:require [sicp.ch1.ex16 :as ch1-ex16]))(defn compose [f g] #(f (g %))) ; could use comp(comment ((compose ch1-ex16/square inc) 6) #__)
Post a Comment
No comments:
Post a Comment