{"action":"created","issue":{"url":"https://api.github.com/repos/fpinscala/fpinscala/issues/391","labels_url":"https://api.github.com/repos/fpinscala/fpinscala/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/fpinscala/fpinscala/issues/391/comments","events_url":"https://api.github.com/repos/fpinscala/fpinscala/issues/391/events","html_url":"https://github.com/fpinscala/fpinscala/pull/391","id":59432809,"number":391,"title":"6.10 hint","user":{"login":"soniah","id":56102,"avatar_url":"https://avatars.githubusercontent.com/u/56102?v=3","gravatar_id":"","url":"https://api.github.com/users/soniah","html_url":"https://github.com/soniah","followers_url":"https://api.github.com/users/soniah/followers","following_url":"https://api.github.com/users/soniah/following{/other_user}","gists_url":"https://api.github.com/users/soniah/gists{/gist_id}","starred_url":"https://api.github.com/users/soniah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soniah/subscriptions","organizations_url":"https://api.github.com/users/soniah/orgs","repos_url":"https://api.github.com/users/soniah/repos","events_url":"https://api.github.com/users/soniah/events{/privacy}","received_events_url":"https://api.github.com/users/soniah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-02T02:49:33Z","updated_at":"2015-03-02T16:11:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fpinscala/fpinscala/pulls/391","html_url":"https://github.com/fpinscala/fpinscala/pull/391","diff_url":"https://github.com/fpinscala/fpinscala/pull/391.diff","patch_url":"https://github.com/fpinscala/fpinscala/pull/391.patch"},"body":"After reading and doing the exercises up to chapter 6, I hadn't\nseen the \"lamda lift\" syntax used in flatMap - I had to read\nthe answers and even asked a StackOverflow question about it\n[1]. So others new to Scala will probably need this hint too.\n\n[1] https://stackoverflow.com/questions/28791064/scala-case-class-with-function-parameters"},"comment":{"url":"https://api.github.com/repos/fpinscala/fpinscala/issues/comments/76740742","html_url":"https://github.com/fpinscala/fpinscala/pull/391#issuecomment-76740742","issue_url":"https://api.github.com/repos/fpinscala/fpinscala/issues/391","id":76740742,"user":{"login":"runarorama","id":130916,"avatar_url":"https://avatars.githubusercontent.com/u/130916?v=3","gravatar_id":"","url":"https://api.github.com/users/runarorama","html_url":"https://github.com/runarorama","followers_url":"https://api.github.com/users/runarorama/followers","following_url":"https://api.github.com/users/runarorama/following{/other_user}","gists_url":"https://api.github.com/users/runarorama/gists{/gist_id}","starred_url":"https://api.github.com/users/runarorama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runarorama/subscriptions","organizations_url":"https://api.github.com/users/runarorama/orgs","repos_url":"https://api.github.com/users/runarorama/repos","events_url":"https://api.github.com/users/runarorama/events{/privacy}","received_events_url":"https://api.github.com/users/runarorama/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T16:11:58Z","updated_at":"2015-03-02T16:11:58Z","body":"Good hint, but I'm not so sure that \"lift a lambda\" is a fortunate turn of phrase here. What we're doing is constructing a `State` action, and that `State` action consists of a function (it *is* a function), and a function is normally constructed with the lambda syntax. There's a bit of discussion about this in chapter 2. So maybe what's needed here is just a hint that the `State` constructor takes a function as its argument."}}