{"action":"created","issue":{"url":"https://api.github.com/repos/rvirding/lfe/issues/290","repository_url":"https://api.github.com/repos/rvirding/lfe","labels_url":"https://api.github.com/repos/rvirding/lfe/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/rvirding/lfe/issues/290/comments","events_url":"https://api.github.com/repos/rvirding/lfe/issues/290/events","html_url":"https://github.com/rvirding/lfe/pull/290","id":183270051,"number":290,"title":"Add lazy-seq/1 to support finite lazy sequences","user":{"login":"profitware","id":1164273,"avatar_url":"https://avatars.githubusercontent.com/u/1164273?v=3","gravatar_id":"","url":"https://api.github.com/users/profitware","html_url":"https://github.com/profitware","followers_url":"https://api.github.com/users/profitware/followers","following_url":"https://api.github.com/users/profitware/following{/other_user}","gists_url":"https://api.github.com/users/profitware/gists{/gist_id}","starred_url":"https://api.github.com/users/profitware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profitware/subscriptions","organizations_url":"https://api.github.com/users/profitware/orgs","repos_url":"https://api.github.com/users/profitware/repos","events_url":"https://api.github.com/users/profitware/events{/privacy}","received_events_url":"https://api.github.com/users/profitware/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-16T14:31:26Z","updated_at":"2016-10-16T22:07:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rvirding/lfe/pulls/290","html_url":"https://github.com/rvirding/lfe/pull/290","diff_url":"https://github.com/rvirding/lfe/pull/290.diff","patch_url":"https://github.com/rvirding/lfe/pull/290.patch"},"body":"#289 Implement lazy sequences\r\n\r\n`lazy-seq/1` takes a list to generate finite lazy sequence or another lazy sequence that passes as is. Lazy sequence is treated as finite if at any iteration it produces empty list instead of data as its head and nullary function for next iteration as its tail.\r\n\r\n`drop/2` and `take/2` are modified to handle this behaviour. Commits for tests and documentation will follow today if anything is ok.\r\n\r\n/CC @yurrriq @rvirding "},"comment":{"url":"https://api.github.com/repos/rvirding/lfe/issues/comments/254078650","html_url":"https://github.com/rvirding/lfe/pull/290#issuecomment-254078650","issue_url":"https://api.github.com/repos/rvirding/lfe/issues/290","id":254078650,"user":{"login":"yurrriq","id":1866448,"avatar_url":"https://avatars.githubusercontent.com/u/1866448?v=3","gravatar_id":"","url":"https://api.github.com/users/yurrriq","html_url":"https://github.com/yurrriq","followers_url":"https://api.github.com/users/yurrriq/followers","following_url":"https://api.github.com/users/yurrriq/following{/other_user}","gists_url":"https://api.github.com/users/yurrriq/gists{/gist_id}","starred_url":"https://api.github.com/users/yurrriq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurrriq/subscriptions","organizations_url":"https://api.github.com/users/yurrriq/orgs","repos_url":"https://api.github.com/users/yurrriq/repos","events_url":"https://api.github.com/users/yurrriq/events{/privacy}","received_events_url":"https://api.github.com/users/yurrriq/received_events","type":"User","site_admin":false},"created_at":"2016-10-16T22:07:48Z","updated_at":"2016-10-16T22:07:48Z","body":"I'd like to be able to do, e.g.\r\n\r\n```lfe\r\n(lazy-seq (lists:map #'expensive-func/1 some-lat))\r\n```\r\n\r\nAnd have it only call `expensive-func/1` as I request elements of the resulting list via `take` and such."}}
{"actor":{"display_login":"yurrriq"}}