Post Reply 
My wishes about NEW-RPL
10-01-2016, 02:11 PM (This post was last modified: 10-03-2016 01:42 PM by compsystems.)
Post: #10
RE: My wishes about NEW-RPL
9: Super idea LISP language (prefix notation with list processing)

Use optional brackets () for operators and functions as dynamic arity

By default, the sum binary operator (+) only requires two arguments

x y + returns
'x+y'

x y z + returns
x
'y+z'

using parentheses

(x y z) + returns
'x+y+z'

this is equivalent to using other commands and delimiters

{x y z} ∑LIST returns
'x+y+z'

It implies that the type of data (x, y) obligatorily requires the comma separator is a tuple

Another example

(1 2 3) (x y z) + * returns
( 'x+y+z' '2*(x+y+z)' '3*(x+y+z)' )

equivalent to

{1 2 3 } {x y z} ∑LIST * returns
{ 'x+y+z' '2*(x+y+z)' '3*(x+y+z)' }

great idea?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
My wishes about NEW-RPL - compsystems - 09-30-2016, 03:16 AM
RE: My wishes about NEW-RPL - compsystems - 09-30-2016, 12:22 PM
RE: My wishes about NEW-RPL - Claudio L. - 09-30-2016, 07:59 PM
RE: My wishes about NEW-RPL - compsystems - 09-30-2016, 08:45 PM
RE: My wishes about NEW-RPL - Claudio L. - 10-02-2016, 03:28 AM
RE: My wishes about NEW-RPL - compsystems - 10-01-2016, 02:02 PM
RE: My wishes about NEW-RPL - compsystems - 10-02-2016, 02:01 AM
RE: My wishes about NEW-RPL - compsystems - 10-01-2016 02:11 PM
RE: My wishes about NEW-RPL - Claudio L. - 10-02-2016, 03:38 AM
RE: My wishes about NEW-RPL - compsystems - 10-03-2016, 01:42 PM
RE: My wishes about NEW-RPL - compsystems - 10-05-2016, 12:40 AM
RE: My wishes about NEW-RPL - compsystems - 10-22-2016, 09:04 PM



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