in reply to Re: Re: Re: Elegant way to parse an optional prefix with default?
in thread Elegant way to parse an optional prefix with default?
If it's already known to be syntactically legal, that should do the trick. It doesn't generalize to any kind of default prefix if said prefix could be doubled originally. Otherwise, we have:
That's a good find worth remembering. Thanks.def-prefix . string matches def-prefix? (prefix) (remainder)
—John
|
|---|