Post Reply 
Conversion: Algebraic - Polish - Reverse Polish - LISP ?
11-02-2024, 07:36 PM
Post: #9
RE: Conversion: Algebraic - Polish - Reverse Polish - LISP ?
A little shorter:
Code:
«
  IF DUP TYPE 9 SAME
  THEN OBJ→ → f
    « →LIST 1
      « →PN
      » DOLIST f SWAP +
    »
  END
»

I am not aware of any algebraic expression that ends with an empty list when OBJ→ is called on it. In such a case, the following DOLIST will fail.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Conversion: Algebraic - Polish - Reverse Polish - LISP ? - Thomas Klemm - 11-02-2024 07:36 PM



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