Hi Jon,

> No, it has to be "tail 2", as I want to detect when Path ends with "//" ...
> 
> : (= '("/" "/") (tail 2 (chop "doc//")))
> -> T
> : (= '("/" "/") (tail 1 (chop "doc//")))
> -> NIL

Small optimization: 'tail' also works as a predicate if the
first argument is a list instead of a number. So

   (= '("/" "/") (tail 2 (chop "doc//")))

can be replaced with

   (tail '("/" "/") (chop "doc//"))

This doesn't help with the original problem, though ;-)

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to