Skip to content

Instantly share code, notes, and snippets.

@leppie
Created November 3, 2015 17:06
Show Gist options
  • Save leppie/4a9a3abf2e1005bb1b16 to your computer and use it in GitHub Desktop.
Save leppie/4a9a3abf2e1005bb1b16 to your computer and use it in GitHub Desktop.
Columnwise summing in Scheme
(define d
'((1 2 3 4)
(4 5 6 7)
(7 8 9 10)
(8 9 10 11)
(1 2 3 4)))
(apply map + d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment