Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Tokenize-a-string/Logo/tokenize-a-string-1.logo
Normal file
3
Task/Tokenize-a-string/Logo/tokenize-a-string-1.logo
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
to split :str :sep
|
||||
output parse map [ifelse ? = :sep ["| |] [?]] :str
|
||||
end
|
||||
6
Task/Tokenize-a-string/Logo/tokenize-a-string-2.logo
Normal file
6
Task/Tokenize-a-string/Logo/tokenize-a-string-2.logo
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
to split :str :by [:acc []] [:w "||]
|
||||
if empty? :str [output lput :w :acc]
|
||||
ifelse equal? first :str :by ~
|
||||
[output (split butfirst :str :by lput :w :acc)] ~
|
||||
[output (split butfirst :str :by :acc lput first :str :w)]
|
||||
end
|
||||
2
Task/Tokenize-a-string/Logo/tokenize-a-string-3.logo
Normal file
2
Task/Tokenize-a-string/Logo/tokenize-a-string-3.logo
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
? show split "Hello,How,Are,You,Today ",
|
||||
[Hello How Are You Today]
|
||||
Loading…
Add table
Add a link
Reference in a new issue