Hi Arie,
> please check chapter 6 on pattern matching.
Thanks!
: (de isalpha? (Lst)
(not
(find
'((C) (and
(or (< C "A") (> C "Z"))
(or (< C "a") (> C "z"))))
Lst)))
This is a little inefficient, and the indentation and parenthesis placements
are a
not right. I would suggest:
(de isalpha? (Lst)
(fully
'((C)
(or (>= "Z" C "A") (>= "z" C "a")) )
Lst ) )
Also a few lines down: (chop "abcd efg")))
Besides this: Very good!
> This chapter and the following one are incomplete and all the rest was not
> yet done. Maybe that is something for the future:) I hope that some other
> PicoLispers have the courage to dive in and make PLEAC more complete. I'll
I got quite fed up with PLEAC after a while. All the tasks are rather simple-
minded, suitable mainly for Perl's focus on regular expressions (If you have a
hammer, everything looks like a nail to you).
♪♫ Alex
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe