| Paste number 73898: | trim from the strings library |
| Pasted by: | cgay |
| When: | 3 years, 2 weeks ago |
| Share: | Tweet this! | http://paste.lisp.org/+1L0Q |
| Channel: | #dylan |
| Paste contents: |
define sealed method trim
(string :: <byte-string>,
#key test :: <function> = whitespace?,
from :: one-of(#"left", #"right", #"both") = #"both",
start :: <integer> = 0,
end: _end :: <integer> = string.size)
=> (trimmed-string :: <byte-string>)
This paste has no annotations.