-
-
Save tomjack/1e0df667660e862d7a0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn fold2 [f1 acc1 f2 acc2 list] | |
(if (seq list) | |
(recur f1 (f1 (first list) acc1) | |
f2 (f2 (first list) acc2) | |
(next list)) | |
[acc1 acc2])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment