Re: function to split strings and lists on predicate

2014-01-06 Thread Dave Angel
On Mon, 06 Jan 2014 06:48:11 +, Mark Lawrence wrote: I came across this over the weekend http://paddy3118.blogspot.co.uk/2013/10/unifying-pythons-string-and-lis t.html. I couldn't come up with a solution to the fsplit function that seemed in any way cleaner. What can our nest of avid

function to split strings and lists on predicate

2014-01-05 Thread Mark Lawrence
I came across this over the weekend http://paddy3118.blogspot.co.uk/2013/10/unifying-pythons-string-and-list.html. I couldn't come up with a solution to the fsplit function that seemed in any way cleaner. What can our nest of avid Pythonistas come up with? -- My fellow Pythonistas, ask not w