{"action":"closed","issue":{"url":"https://api.github.com/repos/racket/racket/issues/663","repository_url":"https://api.github.com/repos/racket/racket","labels_url":"https://api.github.com/repos/racket/racket/issues/663/labels{/name}","comments_url":"https://api.github.com/repos/racket/racket/issues/663/comments","events_url":"https://api.github.com/repos/racket/racket/issues/663/events","html_url":"https://github.com/racket/racket/issues/663","id":34543035,"number":663,"title":"the signature for \"set-map\" is inconsistent with the rest of racket.","user":{"login":"LewisAndrewCampbell","id":424913,"avatar_url":"https://avatars.githubusercontent.com/u/424913?v=3","gravatar_id":"","url":"https://api.github.com/users/LewisAndrewCampbell","html_url":"https://github.com/LewisAndrewCampbell","followers_url":"https://api.github.com/users/LewisAndrewCampbell/followers","following_url":"https://api.github.com/users/LewisAndrewCampbell/following{/other_user}","gists_url":"https://api.github.com/users/LewisAndrewCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/LewisAndrewCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LewisAndrewCampbell/subscriptions","organizations_url":"https://api.github.com/users/LewisAndrewCampbell/orgs","repos_url":"https://api.github.com/users/LewisAndrewCampbell/repos","events_url":"https://api.github.com/users/LewisAndrewCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/LewisAndrewCampbell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-05-29T10:07:03Z","updated_at":"2016-03-09T17:23:40Z","closed_at":"2016-03-09T17:23:40Z","body":"the map functions for lists, vectors and streams all take a procedure as their first argument:\r\n\r\n    > (map add1 '(1 2 3))\r\n    '(2 3 4)\r\n    > (vector-map add1 #(1 2 3))\r\n    '#(2 3 4)\r\n    > (stream-map add1 (stream 1 2 3))\r\n    #<stream>\r\n\r\n set-map, however, takes it as its last argument  - and also returns a list\r\n\r\n    > (set-map (set 1 2 3) add1)\r\n    '(4 3 2)\r\n\r\nweird behaviour. It should be \r\n\r\n    > (set-map add1 (set 1 2 3))\r\n    (set 4 3 2)"}}