{"action":"created","issue":{"url":"https://api.github.com/repos/jOOQ/jOOL/issues/89","labels_url":"https://api.github.com/repos/jOOQ/jOOL/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/jOOQ/jOOL/issues/89/comments","events_url":"https://api.github.com/repos/jOOQ/jOOL/issues/89/events","html_url":"https://github.com/jOOQ/jOOL/issues/89","id":69947145,"number":89,"title":"Question: Singleton Seq of Array","user":{"login":"danieldietrich","id":743833,"avatar_url":"https://avatars.githubusercontent.com/u/743833?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldietrich","html_url":"https://github.com/danieldietrich","followers_url":"https://api.github.com/users/danieldietrich/followers","following_url":"https://api.github.com/users/danieldietrich/following{/other_user}","gists_url":"https://api.github.com/users/danieldietrich/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldietrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldietrich/subscriptions","organizations_url":"https://api.github.com/users/danieldietrich/orgs","repos_url":"https://api.github.com/users/danieldietrich/repos","events_url":"https://api.github.com/users/danieldietrich/events{/privacy}","received_events_url":"https://api.github.com/users/danieldietrich/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jOOQ/jOOL/labels/P:%20Medium","name":"P: Medium","color":"ffaaaa"},{"url":"https://api.github.com/repos/jOOQ/jOOL/labels/T:%20Support%20request","name":"T: Support request","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jOOQ/jOOL/milestones/5","html_url":"https://github.com/jOOQ/jOOL/milestones/Version%200.9.7","labels_url":"https://api.github.com/repos/jOOQ/jOOL/milestones/5/labels","id":960160,"number":5,"title":"Version 0.9.7","description":"","creator":{"login":"lukaseder","id":734593,"avatar_url":"https://avatars.githubusercontent.com/u/734593?v=3","gravatar_id":"","url":"https://api.github.com/users/lukaseder","html_url":"https://github.com/lukaseder","followers_url":"https://api.github.com/users/lukaseder/followers","following_url":"https://api.github.com/users/lukaseder/following{/other_user}","gists_url":"https://api.github.com/users/lukaseder/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaseder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaseder/subscriptions","organizations_url":"https://api.github.com/users/lukaseder/orgs","repos_url":"https://api.github.com/users/lukaseder/repos","events_url":"https://api.github.com/users/lukaseder/events{/privacy}","received_events_url":"https://api.github.com/users/lukaseder/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":9,"state":"open","created_at":"2015-02-01T12:46:09Z","updated_at":"2015-04-22T05:33:32Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-04-21T20:44:36Z","updated_at":"2015-04-29T19:09:19Z","closed_at":"2015-04-22T05:33:32Z","body":"Hi Lukas,\r\n\r\nI'm not convinced about the `java.util.stream.Stream.of()` API. There are\r\n\r\n* `Stream.of(T t)` respectively `Seq.of(T t)`\r\n* `Stream.of(T... values)` respectively `Seq.of(T... values)`\r\n\r\nwhich does not allow us to create a Stream/Seq of an Array, i.e.\r\n\r\n* `Seq.of(new String[] { \"hello\" })` is a `Seq<String>` instead of a `Seq<String[]>`\r\n\r\nWorkaround:\r\n\r\n* `Seq.of(new String[][]{{ \"\" }})`, which is ugly\r\n\r\nJust want to hear your opinion about the practical value of having a special API for a singleton Array Seq.\r\n\r\nAnd also: What is the use case for a `Stream.of(T t)`. If there would be only a `Stream.of(T... values)` we could also call `Stream.of(t)`!? Looking at the implementation of java.util.stream.Stream.of(T t) I see a difference, but from the API perspective I don't see the point.\r\n\r\n\\- Daniel"},"comment":{"url":"https://api.github.com/repos/jOOQ/jOOL/issues/comments/97546203","html_url":"https://github.com/jOOQ/jOOL/issues/89#issuecomment-97546203","issue_url":"https://api.github.com/repos/jOOQ/jOOL/issues/89","id":97546203,"user":{"login":"danieldietrich","id":743833,"avatar_url":"https://avatars.githubusercontent.com/u/743833?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldietrich","html_url":"https://github.com/danieldietrich","followers_url":"https://api.github.com/users/danieldietrich/followers","following_url":"https://api.github.com/users/danieldietrich/following{/other_user}","gists_url":"https://api.github.com/users/danieldietrich/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldietrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldietrich/subscriptions","organizations_url":"https://api.github.com/users/danieldietrich/orgs","repos_url":"https://api.github.com/users/danieldietrich/repos","events_url":"https://api.github.com/users/danieldietrich/events{/privacy}","received_events_url":"https://api.github.com/users/danieldietrich/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T19:09:19Z","updated_at":"2015-04-29T19:09:19Z","body":"@jbgi it is 6 chars longer than `Stream.of(new String[][]{{\"hello\"}});` but way less ugly :-)"}}