Skip to content

Instantly share code, notes, and snippets.

@Sgeo
Created February 6, 2013 20:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Sgeo/de8180f895ff7aed15ea to your computer and use it in GitHub Desktop.
(ns safer-trampoline.private
(:refer-clojure :exclude [trampoline]))
(defprotocol ISingularResult
"A protocol for holding onto one result. For private use."
(result [this]))
(deftype TrampolineDone [data]
ISingularResult
(result [this]
data))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment