{"action":"closed","issue":{"url":"https://api.github.com/repos/Anviking/Decodable/issues/85","repository_url":"https://api.github.com/repos/Anviking/Decodable","labels_url":"https://api.github.com/repos/Anviking/Decodable/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/Anviking/Decodable/issues/85/comments","events_url":"https://api.github.com/repos/Anviking/Decodable/issues/85/events","html_url":"https://github.com/Anviking/Decodable/issues/85","id":147732846,"number":85,"title":"lazy? (decodeArrayLazily)","user":{"login":"Anviking","id":304423,"avatar_url":"https://avatars.githubusercontent.com/u/304423?v=3","gravatar_id":"","url":"https://api.github.com/users/Anviking","html_url":"https://github.com/Anviking","followers_url":"https://api.github.com/users/Anviking/followers","following_url":"https://api.github.com/users/Anviking/following{/other_user}","gists_url":"https://api.github.com/users/Anviking/gists{/gist_id}","starred_url":"https://api.github.com/users/Anviking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anviking/subscriptions","organizations_url":"https://api.github.com/users/Anviking/orgs","repos_url":"https://api.github.com/users/Anviking/repos","events_url":"https://api.github.com/users/Anviking/events{/privacy}","received_events_url":"https://api.github.com/users/Anviking/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-12T12:16:59Z","updated_at":"2016-04-12T12:21:16Z","closed_at":"2016-04-12T12:21:16Z","body":"```swift\r\npublic func decodeArrayLazily<T>(elementDecodeClosure: AnyObject throws -> T) -> (json: AnyObject) throws -> [T] {\r\n    return { json in\r\n        return try (NSArray.decode(json) as [AnyObject]).lazy.map { try elementDecodeClosure($0) }\r\n    }\r\n}\r\n```\r\n\r\nPerhaps this could be useful. I should investigate performance sometime."}}