Created
October 10, 2010 05:46
-
-
Save nobusue/619000 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g100pon #26 文字列を分割してListに変換 | |
assert 'This is a pen'.tokenize() == ['This', 'is', 'a', 'pen'] | |
assert '東京/大阪/名古屋/仙台'.tokenize('/') == ['東京', '大阪', '名古屋', '仙台'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment