{"action":"created","issue":{"url":"https://api.github.com/repos/isaacg1/pyth/issues/96","labels_url":"https://api.github.com/repos/isaacg1/pyth/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/isaacg1/pyth/issues/96/comments","events_url":"https://api.github.com/repos/isaacg1/pyth/issues/96/events","html_url":"https://github.com/isaacg1/pyth/issues/96","id":75013049,"number":96,"title":"Sorted Partitions","user":{"login":"jakobkogler","id":7143573,"avatar_url":"https://avatars.githubusercontent.com/u/7143573?v=3","gravatar_id":"","url":"https://api.github.com/users/jakobkogler","html_url":"https://github.com/jakobkogler","followers_url":"https://api.github.com/users/jakobkogler/followers","following_url":"https://api.github.com/users/jakobkogler/following{/other_user}","gists_url":"https://api.github.com/users/jakobkogler/gists{/gist_id}","starred_url":"https://api.github.com/users/jakobkogler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakobkogler/subscriptions","organizations_url":"https://api.github.com/users/jakobkogler/orgs","repos_url":"https://api.github.com/users/jakobkogler/repos","events_url":"https://api.github.com/users/jakobkogler/events{/privacy}","received_events_url":"https://api.github.com/users/jakobkogler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-10T22:17:24Z","updated_at":"2015-05-14T11:28:43Z","closed_at":null,"body":"Because of [this PPCG question](http://codegolf.stackexchange.com/questions/49943/maximum-concatenated-product#49943). \r\n\r\nHow about a function, that returns all partitions of a string? By partition I mean the following: \r\n\r\n    Partitions(\"abc\") = [[\"a\", \"b\", \"c\"], [\"ab\", \"c\"], [\"abc\"], [\"a\", \"bc\"]]\r\n\r\nSo the elements should stay in order. It simply splits the string in all possible ways. Is there a special name for this kind of partitions?\r\n\r\nThe same thing should also work on sequences, like a list. And on numbers, where the number get's converted into a string, the partitions are computed and then mapped onto strings. \r\n\r\n    Partitions(1234) = [[1,2,3,4], [12,3,4], [12,34], [123,4], [1234], [1,23,4], [1,234],[1,2,34]]\r\n\r\nI can implement this in the next days. Just post it here to see, what you think about this. This functionality is quite specific, but I have seen could also be useful for other questions like [this](http://codegolf.stackexchange.com/questions/49922/ways-to-arrange-the-integers-1-to-9-with-operators-so-that-the-result-is-100). And I currently don't see a nice way to implement such a thing in Pyth right now. The only thing that cames to mind is something similar like in this [answer](http://codegolf.stackexchange.com/questions/47926/sorted-lexical-partition-of-a-number/47937#47937), which is really really long. \r\n"},"comment":{"url":"https://api.github.com/repos/isaacg1/pyth/issues/comments/102008162","html_url":"https://github.com/isaacg1/pyth/issues/96#issuecomment-102008162","issue_url":"https://api.github.com/repos/isaacg1/pyth/issues/96","id":102008162,"user":{"login":"jakobkogler","id":7143573,"avatar_url":"https://avatars.githubusercontent.com/u/7143573?v=3","gravatar_id":"","url":"https://api.github.com/users/jakobkogler","html_url":"https://github.com/jakobkogler","followers_url":"https://api.github.com/users/jakobkogler/followers","following_url":"https://api.github.com/users/jakobkogler/following{/other_user}","gists_url":"https://api.github.com/users/jakobkogler/gists{/gist_id}","starred_url":"https://api.github.com/users/jakobkogler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakobkogler/subscriptions","organizations_url":"https://api.github.com/users/jakobkogler/orgs","repos_url":"https://api.github.com/users/jakobkogler/repos","events_url":"https://api.github.com/users/jakobkogler/events{/privacy}","received_events_url":"https://api.github.com/users/jakobkogler/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T11:28:43Z","updated_at":"2015-05-14T11:28:43Z","body":"Can be closed now. Implemented in #104 "}}