Re: PLEAC Pattern Matching ready

2018-06-16 Thread Arie van Wingerden
​Hi, ​ > Yes, fully. But also (>= "Z" C "A") > ​Right! ​ > > > Also a few lines down: (chop "abcd efg"))) > > ​?? What is wrong? > Only the spacing of closing parens (chop "abcd efg") ) ) > ​OK! I'll take the pp advice :) Thx. again! Arie​

Re: PLEAC Pattern Matching ready

2018-06-16 Thread Alexander Burger
On Sat, Jun 16, 2018 at 02:28:11PM +0200, Alexander Burger wrote: > > ​?? What is wrong? > > Only the spacing of closing parens (chop "abcd efg") ) ) Concerning the indentation rules, the recommendation is to stay roughly close to the output format of 'pp' / 'pretty' ♪♫ Alex -- UNSUBSCRIBE:

Re: PLEAC Pattern Matching ready

2018-06-16 Thread Alexander Burger
On Sat, Jun 16, 2018 at 02:18:46PM +0200, Arie van Wingerden wrote: > >(de isalpha? (Lst) > > (fully > > '((C) > > (or (>= "Z" C "A") (>= "z" C "a")) ) > > Lst ) ) > > ​Great! Nice function. Didn't know that :)​ Yes, fully. But also (>= "Z" C "A") > >

Re: PLEAC Pattern Matching ready

2018-06-16 Thread Arie van Wingerden
Hi, 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 ) ) > ​Great! Nice function. Didn't know that :)​ >

Re: PLEAC Pattern Matching ready

2018-06-16 Thread Alexander Burger
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

PLEAC Pattern Matching ready

2018-06-15 Thread Arie van Wingerden
Hi Alex, please check chapter 6 on pattern matching. 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 then take care of