Re: [fricas-devel] split of Strings

2016-12-31 Thread Waldek Hebisch
Ralf Hemmecke wrote: > > On 12/20/2016 11:00 PM, Waldek Hebisch wrote: > > The first example for 'split' (and probably the only one in FriCAS > > book) is to split on spaces. In such case the expected behaviour > > is to treat several consecutive spaces as a single separator. > > Yes, that's a g

Re: [fricas-devel] split of Strings

2016-12-20 Thread Ralf Hemmecke
On 12/20/2016 11:00 PM, Waldek Hebisch wrote: > The first example for 'split' (and probably the only one in FriCAS > book) is to split on spaces. In such case the expected behaviour > is to treat several consecutive spaces as a single separator. Yes, that's a good reason to keep the current imple

Re: [fricas-devel] split of Strings

2016-12-20 Thread Waldek Hebisch
Prof. Dr. Johannes Grabmeier wrote: > > discovered a strange behaviour of the split function for Strings: > > A very natural application is to read in a CSV file and get as many > Strings - possibly empty ones - as the number of occurencies of the > splitting character indicates (+1): > > Howeve

Re: [fricas-devel] split of Strings

2016-12-20 Thread Ralf Hemmecke
On 12/17/2016 01:56 PM, Prof. Dr. Johannes Grabmeier privat wrote: > A very natural application is to read in a CSV file and get as many > Strings - possibly empty ones - as the number of occurencies of the > splitting character indicates (+1): I support that change. > (1) -> line := "A;B;;C;;" >

[fricas-devel] split of Strings

2016-12-17 Thread Prof. Dr. Johannes Grabmeier privat
Hi, discovered a strange behaviour of the split function for Strings: A very natural application is to read in a CSV file and get as many Strings - possibly empty ones - as the number of occurencies of the splitting character indicates (+1): However: (1) -> line := "A;B;;C;;" (1) "A;B;;C;;