Paste number 73898: trim from the strings library

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:
Raw Source | XML | Display As
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.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.