Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the output to be correct given the code in the block above #128

Merged
merged 1 commit into from
Feb 13, 2016

Conversation

drewverlee
Copy link
Contributor

when running the following code

(defn whiney-middleware
  [next-handler rejects]
  {:pre [(set? rejects)]}
  (fn [x]
     (if (= x 1)
      "I'm not going to bother doing anything to that"
      (let [y (next-handler x)]
        (if (rejects y)
          (str "I don't like " y)
          (str y))))))

(def whiney-strinc (whiney-middleware inc #{2}))
(whiney-strinc 1)

i get the output
;=> "I'm not going to bother doing anything to that"

so i would expect that output in the comment below on the site, but instead I see this:

; => "I don't like 2"

It seems like the current comment might be incorrect.

@flyingmachine
Copy link
Owner

Thanks!

flyingmachine added a commit that referenced this pull request Feb 13, 2016
Update the output to be correct given the code in the block above
@flyingmachine flyingmachine merged commit de47bde into flyingmachine:master Feb 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants