Feature #4335
Updated by sawa (Tsuyoshi Sawada) over 4 years ago
=begin Here is ruby's behavior: ```ruby C:\work>irb irb(main):001:0> ' '.split('/') # => [" "] irb(main):002:0> ''.split('/') # => [] irb(main):003:0> '/'.split('/') # => [] ``` Here is Python's python's behavior: ```python Python 2.4.3 (#1, Jun 11 2009, 14:09:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> ' '.split('/') [' '] >>> ''.split('/') [''] >>> '/'.split('/') ['', ''] ``` Is there any chance to let `''.split('/')` return `['']` of ''.split('/') returns [''] instead of `[]`? []? =end