Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[setting/Any-str] implemented .words
  • Loading branch information
Carl Masak committed May 6, 2009
1 parent 6b962c2 commit 35c6746
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/setting/Any-str.pm
Expand Up @@ -140,6 +140,10 @@ class Any is also {
}
}

our List multi method words($limit = *) {
self.comb(/\S+/, $limit);
}

# TODO: signature not fully specced in S32 yet
our Str multi method trim() is export {
(~self).subst(/(^\s+)|(\s+$)/, "", :g)
Expand Down

0 comments on commit 35c6746

Please sign in to comment.