{"action":"created","issue":{"url":"https://api.github.com/repos/paldepind/flyd/issues/31","labels_url":"https://api.github.com/repos/paldepind/flyd/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/paldepind/flyd/issues/31/comments","events_url":"https://api.github.com/repos/paldepind/flyd/issues/31/events","html_url":"https://github.com/paldepind/flyd/issues/31","id":86302021,"number":31,"title":"flatmap issue?","user":{"login":"yelouafi","id":5453835,"avatar_url":"https://avatars.githubusercontent.com/u/5453835?v=3","gravatar_id":"","url":"https://api.github.com/users/yelouafi","html_url":"https://github.com/yelouafi","followers_url":"https://api.github.com/users/yelouafi/followers","following_url":"https://api.github.com/users/yelouafi/following{/other_user}","gists_url":"https://api.github.com/users/yelouafi/gists{/gist_id}","starred_url":"https://api.github.com/users/yelouafi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yelouafi/subscriptions","organizations_url":"https://api.github.com/users/yelouafi/orgs","repos_url":"https://api.github.com/users/yelouafi/repos","events_url":"https://api.github.com/users/yelouafi/events{/privacy}","received_events_url":"https://api.github.com/users/yelouafi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paldepind/flyd/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-08T19:34:11Z","updated_at":"2015-06-09T10:23:19Z","closed_at":null,"body":"Has anyone tried the `flatmap` module? i'm giving errors when playing with some examples\r\n\r\n```javascript```\r\nvar flyd = require(\"flyd\");\r\nvar flatmap = require(\"flyd-flatmap\")\r\n  \r\nvar main = flyd.stream()\r\n\r\nflatmap(function(v) {\r\n    return flyd.stream(v);\r\n}, main)\r\n\r\nmain(10)\r\n```\r\n\r\nit gives me the following error\r\n```\r\nC:\\Users\\Yassine\\Desktop\\test (2)\\streams\\node_modules\\flyd\\flyd.js:0\r\n(function (exports, require, module, __filename, __dirname) { (function (root,\r\n^\r\nRangeError: Maximum call stack size exceeded\r\n```\r\n\r\nI hope i'm not doing something dumb? :)"},"comment":{"url":"https://api.github.com/repos/paldepind/flyd/issues/comments/110306307","html_url":"https://github.com/paldepind/flyd/issues/31#issuecomment-110306307","issue_url":"https://api.github.com/repos/paldepind/flyd/issues/31","id":110306307,"user":{"login":"iofjuupasli","id":1502968,"avatar_url":"https://avatars.githubusercontent.com/u/1502968?v=3","gravatar_id":"","url":"https://api.github.com/users/iofjuupasli","html_url":"https://github.com/iofjuupasli","followers_url":"https://api.github.com/users/iofjuupasli/followers","following_url":"https://api.github.com/users/iofjuupasli/following{/other_user}","gists_url":"https://api.github.com/users/iofjuupasli/gists{/gist_id}","starred_url":"https://api.github.com/users/iofjuupasli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iofjuupasli/subscriptions","organizations_url":"https://api.github.com/users/iofjuupasli/orgs","repos_url":"https://api.github.com/users/iofjuupasli/repos","events_url":"https://api.github.com/users/iofjuupasli/events{/privacy}","received_events_url":"https://api.github.com/users/iofjuupasli/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T10:23:19Z","updated_at":"2015-06-09T10:23:19Z","body":"If you will move extensions to one repository, it'll be easier to test and maintain. Now it's probably really hard to check all extensions on some changes in core. The more that API is not stable yet (probably you will add laziness, backpressure, etc.) and more extensions are created.\r\nNotice also that this issue created here, not in flyd-flatmap repository.\r\nIt makes no sense to keep them separated as extensions depends on core and can't be reused by other libraries without core.\r\nFrom user point of view there will be`flyd/flatmap` instead `flyd-flatmap`. And in `package.json` only `\"flyd\": \"x.x.x\"` instead `\"flyd\": \"x.x.x\", \"flyd-flatmap\": \"x.x.x\", \"flyd-filter\": \"x.x.x\", \"flyd-foo\": \"x.x.x\", \"flyd-bar\": \"x.x.x\", \"flyd-more-extensions\": \"x.x.x\", \"etcetcetc\": \"x.x.x\"`"}}