Skip to content

Instantly share code, notes, and snippets.

@ruliana
Last active October 11, 2021 09:03
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 ruliana/4fc83b2cf5b3778eec4432463210d6e0 to your computer and use it in GitHub Desktop.
Save ruliana/4fc83b2cf5b3778eec4432463210d6e0 to your computer and use it in GitHub Desktop.
Functional design patterns - builder function (Racket)
(define (builder builder-param other-builder-param)
; ... optionally some initialization code
(λ (trivial-param)
; ... do stuff
something))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment