Post Reply 
Ehrenfest's urn
01-04-2022, 02:09 AM
Post: #7
RE: Ehrenfest's urn
(01-03-2022 11:10 PM)zahi48g Wrote:  Thank you D Lachieze and John Keith.

I've learned two things : How to remove properly an object from a list

and that L1(0) refers to the last element of list L1 (am I right ?) .

But i've got one question for D Lachieze . In order to know if n belongs to L1, shouldn't you write

" IF POS(L1,n)>0 THEN ..." instead of " IF POS(L1,n) THEN ..." ?

Thank you

Since false is 0 and the true condition is anything other than 0, either test works.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Ehrenfest's urn - zahi48g - 12-29-2021, 10:16 PM
RE: Ehrenfest's urn - toml_12953 - 12-29-2021, 11:11 PM
RE: Ehrenfest's urn - zahi48g - 12-29-2021, 11:53 PM
RE: Ehrenfest's urn - Didier Lachieze - 12-30-2021, 05:28 AM
RE: Ehrenfest's urn - John Keith - 12-30-2021, 10:30 PM
RE: Ehrenfest's urn - zahi48g - 01-03-2022, 11:10 PM
RE: Ehrenfest's urn - toml_12953 - 01-04-2022 02:09 AM



User(s) browsing this thread: 1 Guest(s)