remove print!s from words
This commit is contained in:
parent
2203601770
commit
ef4a345da6
|
@ -374,11 +374,8 @@ fn strip {
|
||||||
fn words {
|
fn words {
|
||||||
"Takes a string and returns a list of the words in the string. Strips all whitespace."
|
"Takes a string and returns a list of the words in the string. Strips all whitespace."
|
||||||
(str as :string) -> {
|
(str as :string) -> {
|
||||||
print! (str)
|
|
||||||
let no_punct = strip (str)
|
let no_punct = strip (str)
|
||||||
print! (no_punct)
|
|
||||||
let strs = split (no_punct, " ")
|
let strs = split (no_punct, " ")
|
||||||
print! (strs)
|
|
||||||
fn worder (list, str) -> if empty? (str)
|
fn worder (list, str) -> if empty? (str)
|
||||||
then do list > report!
|
then do list > report!
|
||||||
else do append (list, str) > report!
|
else do append (list, str) > report!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user