{"comment":{"url":"https://api.github.com/repos/yarbroughw/cs383-finalproject/comments/10743841","html_url":"https://github.com/yarbroughw/cs383-finalproject/commit/3ed47565059b45d1cd9c64d2461671328f37dc36#commitcomment-10743841","id":10743841,"user":{"login":"yarbroughw","id":1818066,"avatar_url":"https://avatars.githubusercontent.com/u/1818066?v=3","gravatar_id":"","url":"https://api.github.com/users/yarbroughw","html_url":"https://github.com/yarbroughw","followers_url":"https://api.github.com/users/yarbroughw/followers","following_url":"https://api.github.com/users/yarbroughw/following{/other_user}","gists_url":"https://api.github.com/users/yarbroughw/gists{/gist_id}","starred_url":"https://api.github.com/users/yarbroughw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarbroughw/subscriptions","organizations_url":"https://api.github.com/users/yarbroughw/orgs","repos_url":"https://api.github.com/users/yarbroughw/repos","events_url":"https://api.github.com/users/yarbroughw/events{/privacy}","received_events_url":"https://api.github.com/users/yarbroughw/received_events","type":"User","site_admin":false},"position":12,"line":15,"path":"src/Main.hs","commit_id":"3ed47565059b45d1cd9c64d2461671328f37dc36","created_at":"2015-04-15T19:48:45Z","updated_at":"2015-04-15T19:48:45Z","body":"This won't typecheck, because\r\n``` Haskell\r\nmap :: (a -> b) -> [a] -> [b]\r\na :: Action :: World -> (Boid -> Boid)\r\nmap a :: [World] -> [Boid -> Boid]\r\n```\r\nYou want to apply `w` to `a` first, and then map the result over `w`.\r\n``` Haskell\r\na w :: (Boid -> Boid)\r\nmap (a w) :: [Boid] -> [Boid]\r\nupdate a w = map (a w) w\r\n```"}}