Re: Stuck at PLEAC example

2018-06-10 Thread Arie van Wingerden
So I guess that the possibility of using This as a formal parameter is a goodie associated with dynamic scoping, which I am not (yet) really used to .. It opens a few doors. Nice! Op zo 10 jun. 2018 18:20 schreef Arie van Wingerden : > ​Hi Alex, > ​ > ​ > > I would do it this way: > > > >

Re: Stuck at PLEAC example

2018-06-10 Thread Arie van Wingerden
will make sense. > *Von:* johtob...@gmail.com > *Gesendet:* 10. Juni 2018 5:33 nachm. > *An:* picolisp@software-lab.de > *Betreff:* Re: Stuck at PLEAC example > > Also while pointer equality '== might be fine in this case '= makes more > sense to me > > *Von:* johto

Re: Stuck at PLEAC example

2018-06-10 Thread Arie van Wingerden
ome named symbol > which is not part of it got changed? > > > *Von:* johtob...@gmail.com > *Gesendet:* 10. Juni 2018 5:43 nachm. > *An:* picolisp@software-lab.de > *Betreff:* Re: Stuck at PLEAC example > > > : (put emp1 'category 'engineer) > -> engineer > : (setq E

Re: Stuck at PLEAC example

2018-06-10 Thread Arie van Wingerden
ntion how it does misbehavior so i assumed. > > *Von:* xapw...@gmail.com > *Gesendet:* 10. Juni 2018 5:25 nachm. > *An:* picolisp@software-lab.de > *Antworten:* picolisp@software-lab.de > *Betreff:* Re: Stuck at PLEAC example > > Hi Johann, > > I think that is not correct.

Re: Stuck at PLEAC example

2018-06-10 Thread Arie van Wingerden
kes more > sense to me > > *Von:* johtob...@gmail.com > *Gesendet:* 10. Juni 2018 5:31 nachm. > *An:* picolisp@software-lab.de > *Betreff:* Re: Stuck at PLEAC example > > You are right. But that does not change the fact that your code will > misbehave if you do n

Re: Stuck at PLEAC example

2018-06-10 Thread Arie van Wingerden
​Hi Alex, ​ ​ > I would do it this way: > >(setq Employees '(emp1 emp2 emp3 emp4 emp5)) OK. You don't use the values as names, but the properties, because you'd like to refer to (: name) in the 'prinl'. Got it. >(mapc put > Employees > '(name .) > '("Abel" "Jones"

Re: Stuck at PLEAC example

2018-06-10 Thread Johann-Tobias Schäg
esendet: 10. Juni 2018 5:33 nachm.An: picolisp@software-lab.deBetreff: Re: Stuck at PLEAC exampleAlso while pointer equality '== might be fine in this cas

Re: Stuck at PLEAC example

2018-06-10 Thread Johann-Tobias Schäg
Von: johtob...@gmail.comGesendet: 10. Juni 2018 5:31 nachm.An: picolisp@software-lab.deBetreff: Re: Stuck at PLEAC exampleYou are right. But that does not change

Re: Stuck at PLEAC example

2018-06-10 Thread Johann-Tobias Schäg
-lab.deAntworten: picolisp@software-lab.deBetreff: Re: Stuck at PLEAC example Hi Johann,I think that is not correct.In the first place I think I don't need a name property. Only the 'category!In the second place: (get 'name emp1) will ALWAYS return NIL, because the function call is incorrect.It

Re: Stuck at PLEAC example

2018-06-10 Thread Arie van Wingerden
> > *Von:* xapw...@gmail.com > *Gesendet:* 10. Juni 2018 2:20 nachm. > *An:* picolisp@software-lab.de > *Antworten:* picolisp@software-lab.de > *Betreff:* Stuck at PLEAC example > > Hi Alex, > > I am now working on the "Arrays" section at "Find First E

Re: Stuck at PLEAC example

2018-06-10 Thread Alexander Burger
On Sun, Jun 10, 2018 at 02:13:10PM +0200, Arie van Wingerden wrote: > Please give a complete example! I would do it this way: (setq Employees '(emp1 emp2 emp3 emp4 emp5)) (mapc put Employees '(name .) '("Abel" "Jones" "Millner" "Noles" "Zaphod") ) (mapc put

Re: Stuck at PLEAC example

2018-06-10 Thread Johann-Tobias Schäg
-lab.deAntworten: picolisp@software-lab.deBetreff: Stuck at PLEAC example Hi Alex,I am now working on the "Arrays" section at "Find First Element that passes a Test".Your example:   (with      (find         '((This) (== 'engineer (: category)))         Employees )      (prinl

Stuck at PLEAC example

2018-06-10 Thread Arie van Wingerden
Hi Alex, I am now working on the "Arrays" section at "Find First Element that passes a Test". Your example: (with (find '((This) (== 'engineer (: category))) Employees ) (prinl "Highest paid engineer is: " (: name)) ) This won't work of course, so I created a