diff options
| author | mryouse | 2023-06-08 18:43:00 -0400 |
|---|---|---|
| committer | mryouse | 2023-06-08 18:43:00 -0400 |
| commit | 7fd1e81154ce4c0520118fff64e54390c8ffbbd9 (patch) | |
| tree | 8118f6675f09957da358c1e24fee9b330b851b65 | |
| parent | dd6bb60b82252ea34daeadc20abd1a6fefa6b69d (diff) | |
initial commit of not-great strip
| -rw-r--r-- | core.neb | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -13,6 +13,15 @@ "") (last lst))) +(func strip (str) + ; TODO need escape codes + (def whitespace (list " " " " " +")) + (branch + ((in? (first str) whitespace) (strip (rest str))) + ((in? (last str) whitespace) (strip (most str))) + (#true str))) + ; lists (func slice (lst idx) ; TODO doesn't handle lengths |
