{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon.language/issues/739","labels_url":"https://api.github.com/repos/ceylon/ceylon.language/issues/739/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon.language/issues/739/comments","events_url":"https://api.github.com/repos/ceylon/ceylon.language/issues/739/events","html_url":"https://github.com/ceylon/ceylon.language/issues/739","id":104308403,"number":739,"title":"Add Iterable.takeUntil() or similar","user":{"login":"jvasileff","id":236050,"avatar_url":"https://avatars.githubusercontent.com/u/236050?v=3","gravatar_id":"","url":"https://api.github.com/users/jvasileff","html_url":"https://github.com/jvasileff","followers_url":"https://api.github.com/users/jvasileff/followers","following_url":"https://api.github.com/users/jvasileff/following{/other_user}","gists_url":"https://api.github.com/users/jvasileff/gists{/gist_id}","starred_url":"https://api.github.com/users/jvasileff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvasileff/subscriptions","organizations_url":"https://api.github.com/users/jvasileff/orgs","repos_url":"https://api.github.com/users/jvasileff/repos","events_url":"https://api.github.com/users/jvasileff/events{/privacy}","received_events_url":"https://api.github.com/users/jvasileff/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon.language/labels/FEATURE","name":"FEATURE","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ceylon/ceylon.language/milestones/10","html_url":"https://github.com/ceylon/ceylon.language/milestones/1.2","labels_url":"https://api.github.com/repos/ceylon/ceylon.language/milestones/10/labels","id":807571,"number":10,"title":"1.2","description":"","creator":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":131,"state":"open","created_at":"2014-09-30T00:35:13Z","updated_at":"2015-09-17T08:43:27Z","due_on":"2014-10-28T23:00:00Z","closed_at":null},"comments":4,"created_at":"2015-09-01T16:45:41Z","updated_at":"2015-09-17T08:58:34Z","closed_at":null,"body":"The method:\r\n\r\n```ceylon\r\n{Element*} takeUntil(Boolean stopping(Element element))\r\n```\r\nwould be similar to `takeWhile`, with the following differences:\r\n\r\n* The passed in function would return `true` to signal the end of the stream, rather than `false`\r\n* The `element` that caused the \"stop\" would be included in the resultant stream (`takeWhile` discards the \"final\" element).\r\n\r\nThis is useful if your goal is to take all elements up to and including the \"element you are looking for\". `found` could also be used as the name for the passed in function."},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon.language/issues/comments/141015545","html_url":"https://github.com/ceylon/ceylon.language/issues/739#issuecomment-141015545","issue_url":"https://api.github.com/repos/ceylon/ceylon.language/issues/739","id":141015545,"user":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T08:58:34Z","updated_at":"2015-09-17T08:58:34Z","body":"Yes. (OTOH if someone can think of a decent name for it, it could be implemented in 5 mins.) In the absence of such a name I will reassign it."}}