Title: Stack overflow when joining stream of empty streams · Issue #330 · functionaljava/functionaljava · GitHub
Open Graph Title: Stack overflow when joining stream of empty streams · Issue #330 · functionaljava/functionaljava
X Title: Stack overflow when joining stream of empty streams · Issue #330 · functionaljava/functionaljava
Description: public void test() { Stream.join(nils()); } Stream
Open Graph Description: public void test() { Stream.join(nils()); } Stream
X Description: public void test() { Stream.join(nils()); } Stream<Stream<Integer>> nils() { return Stream.cons(Stream.nil(), this::nils); } This code produces StackOverflowError cause append function ...
Opengraph URL: https://github.com/functionaljava/functionaljava/issues/330
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stack overflow when joining stream of empty streams","articleBody":"```\r\n public void test() {\r\n Stream.join(nils());\r\n }\r\n\r\n Stream\u003cStream\u003cInteger>> nils() {\r\n return Stream.cons(Stream.nil(), this::nils);\r\n }\r\n```\r\n\r\nThis code produces StackOverflowError cause append function recursively evaluates all nil streams while looking for head.\r\nI only came up with ugly looking while inside bind function which produces stream's head on constant stack.\r\nAny ideas?","author":{"url":"https://github.com/l1cache","@type":"Person","name":"l1cache"},"datePublished":"2018-02-02T05:58:54Z","url":"https://github.com/functionaljava/functionaljava/issues/330"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5ceebac8-6872-e4d2-c25c-8336b1d49152 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E96A:1ABD84:F379C:1551A7:6AFBDB31 |
| html-safe-nonce | 714b400468f0423e8aba27441cfa8856eadf652089452d7d4b4e9feea7da1715 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTZBOjFBQkQ4NDpGMzc5QzoxNTUxQTc6NkFGQkRCMzEiLCJ2aXNpdG9yX2lkIjoiNjU2NTk1NDc3NDc5NTgwMzQ0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d4e4ea82bf7bdead3bb58164fc3ec4e3a954c3f5a1d6daf1b2e5dd31100e33fc |
| hovercard-subject-tag | issue:293781852 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/functionaljava/functionaljava/330/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7094dc6cc22d3a49f42417aa8926628209ef0c82c887f230d5fb92f90754916e/functionaljava/functionaljava/issues/330 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7094dc6cc22d3a49f42417aa8926628209ef0c82c887f230d5fb92f90754916e/functionaljava/functionaljava/issues/330 |
| og:image:alt | public void test() { Stream.join(nils()); } Stream |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | l1cache |
| hostname | github.com |
| expected-hostname | github.com |
| None | 18742cb872ec73544356e60359266b67aafece70c4ce008042e06227924cdd07 |
| turbo-cache-control | no-preview |
| go-import | github.com/functionaljava/functionaljava git https://github.com/functionaljava/functionaljava.git |
| octolytics-dimension-user_id | 458836 |
| octolytics-dimension-user_login | functionaljava |
| octolytics-dimension-repository_id | 1033614 |
| octolytics-dimension-repository_nwo | functionaljava/functionaljava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1033614 |
| octolytics-dimension-repository_network_root_nwo | functionaljava/functionaljava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 820be804f18e1ef3940bd74a00d41d73d02e2b91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width