{"action":"opened","issue":{"url":"https://api.github.com/repos/zk/clojuredocs/issues/145","repository_url":"https://api.github.com/repos/zk/clojuredocs","labels_url":"https://api.github.com/repos/zk/clojuredocs/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/zk/clojuredocs/issues/145/comments","events_url":"https://api.github.com/repos/zk/clojuredocs/issues/145/events","html_url":"https://github.com/zk/clojuredocs/issues/145","id":174168216,"number":145,"title":"Can anyone edit or add in an example? (sounds dangerous)","user":{"login":"functor-soup","id":6382230,"avatar_url":"https://avatars.githubusercontent.com/u/6382230?v=3","gravatar_id":"","url":"https://api.github.com/users/functor-soup","html_url":"https://github.com/functor-soup","followers_url":"https://api.github.com/users/functor-soup/followers","following_url":"https://api.github.com/users/functor-soup/following{/other_user}","gists_url":"https://api.github.com/users/functor-soup/gists{/gist_id}","starred_url":"https://api.github.com/users/functor-soup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/functor-soup/subscriptions","organizations_url":"https://api.github.com/users/functor-soup/orgs","repos_url":"https://api.github.com/users/functor-soup/repos","events_url":"https://api.github.com/users/functor-soup/events{/privacy}","received_events_url":"https://api.github.com/users/functor-soup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-31T02:10:39Z","updated_at":"2016-08-31T02:10:39Z","closed_at":null,"body":"I was looking at an example related to `reduced` and came across this example of this one guy implementing `some` using `reduced` and his code was as follows:\r\n\r\n[https://clojuredocs.org/clojure.core/reduced](https://clojuredocs.org/clojure.core/reduced)\r\n```\r\n(defn resome [pred koll]\r\n  (reduce (fn [_ c] (when (pred c) (do (pred c) (reduced (pred c)))))\r\n          koll))\r\n```\r\nAnd I'm like wait a minute doesn't `when` already have an implicit `do` and proceeded to take it out and accidentally omitted the `(pred c)` after it, but seems like it perfectly works fine (the following is what I ended up with)\r\n\r\n```\r\n(defn resome [pred koll]\r\n  (reduce (fn [_ c] (when (pred c) (reduced (pred c))))\r\n          koll)) \r\n```\r\nSo then I tried to correct it thinking that someone will probably have to review the code I put in, but it got published as soon as I clicked `save`.\r\n\r\nSo I was wondering em shouldn't there be someone reviewing these examples if this is a learning resource?  The error is a result of version changes and the guy's example was probably perfectly correct in ref to some older version of clojure or I probably violated some `best practices rules` Or maybe I am the jackass who is missing something here? Again my question is shouldn't there someone who is reviewing the examples?"}}
{"actor":{"display_login":"functor-soup"}}