**Araq**, Ok. Then, I think you just need to bring to the behavior of some 
natural language for the behavior in case of empty separator. In some languages 
​​it is permissible: 
    
    
    javascript:  console.log("test".split(""));               [ 't', 'e', 's', 
't' ]
    julia:       println(split("test",""))                    
SubString{ASCIIString}["t","e","s","t"]
    powershell:  echo ("test" -split "")                      String[] [t, e, 
s, t]
    php:         print_r(str_split("test"));                  Array([0] => 
t,[1] => e,[2] => s,[3] => t)
    perl:        print join(':', split(//, 'test')), "\n";    t:e:s:t
    

in others: C # and blank or null separator is simply ignored, in python it 
causes a compilation error.

PS: Sorry for my English - it's google :) 

Reply via email to