{"action":"opened","issue":{"url":"https://api.github.com/repos/MichaelRFairhurst/wake-compiler/issues/90","labels_url":"https://api.github.com/repos/MichaelRFairhurst/wake-compiler/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/MichaelRFairhurst/wake-compiler/issues/90/comments","events_url":"https://api.github.com/repos/MichaelRFairhurst/wake-compiler/issues/90/events","html_url":"https://github.com/MichaelRFairhurst/wake-compiler/issues/90","id":55780407,"number":90,"title":"Proposal: Generic Functions","user":{"login":"MichaelRFairhurst","id":1627771,"avatar_url":"https://avatars.githubusercontent.com/u/1627771?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelRFairhurst","html_url":"https://github.com/MichaelRFairhurst","followers_url":"https://api.github.com/users/MichaelRFairhurst/followers","following_url":"https://api.github.com/users/MichaelRFairhurst/following{/other_user}","gists_url":"https://api.github.com/users/MichaelRFairhurst/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelRFairhurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelRFairhurst/subscriptions","organizations_url":"https://api.github.com/users/MichaelRFairhurst/orgs","repos_url":"https://api.github.com/users/MichaelRFairhurst/repos","events_url":"https://api.github.com/users/MichaelRFairhurst/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelRFairhurst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MichaelRFairhurst/wake-compiler/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/MichaelRFairhurst/wake-compiler/labels/fullstack","name":"fullstack","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-28T16:37:16Z","updated_at":"2015-01-28T16:37:16Z","closed_at":null,"body":"Will extend this to lambdas, but for the moment templated functions allows better usage of lambdas than templated lambdas does.\r\n\r\nTo make the case for this feature as well as show the proposed syntax\r\n\r\n     every List{T} is:\r\n        {R} R -- map(R -- fn(T) mapper) {\r\n            var R[] = [];\r\n            foreach(this) {\r\n                R[].push(mapper(T));\r\n            }\r\n            return R;\r\n        }"}}