Skip to content

Instantly share code, notes, and snippets.

@kouddy
Created April 26, 2015 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kouddy/b23ca8b8ee9da84d3f9d to your computer and use it in GitHub Desktop.
Save kouddy/b23ca8b8ee9da84d3f9d to your computer and use it in GitHub Desktop.
(define (accumulate-n op init seqs)
(if (null? (car seqs))
null
(cons (accumulate op init (map car seqs))
(accumulate-n op init (map cdr seqs)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment