Post Reply 
My wishes about NEW-RPL
10-03-2016, 01:42 PM (This post was last modified: 10-05-2016 12:43 AM by compsystems.)
Post: #15
RE: My wishes about NEW-RPL
(10-02-2016 03:38 AM)Claudio L. Wrote:  
(10-01-2016 02:11 PM)compsystems Wrote:  {1 2 3 } {x y z} ∑LIST * returns
( 'x+y+z' '2*(x+y+z)' '3*(x+y+z)' )
You just showed yourself the answer to that question. Every single example you have can be done with the existing list objects by replacing + with ∑LIST, everything else is the same.
So you don't really need a new type or new syntax rules to do this.

This new data type BRACES WITHOUT COMMAS, operate similar to the lists but each command or operator would work with dynamic arity, in the current PRL should I use alternative commands as SIGMALIST; PILIST; DELTALIST, ETC

BRACES WITHOUT COMAS
(Arg1 arg2 arg3 ... argN) cmd

example
(Arg1 arg2 arg3 ... argN) + -> Arg1+arg2+arg3+ ... argn

(Arg1 arg2 arg3 ... argN) * -> Arg1*arg2*arg3* ... argn

(Arg1 arg2 arg3 ... argN) - -> Arg1-arg2-arg3- ... argn

(Arg1 arg2 arg3 ... argN) / -> Arg1/arg2/arg3/ ... argn

(Arg1 arg2 arg3 ... argN) ABS -> ( ABS(Arg1) ... ABS(Argn) )


9.1 Also the new data type I want is TUPLA as does HASKELL language
Tuple:
https://en.wikipedia.org/wiki/Tuple
lists and tuples:
https://en.wikibooks.org/wiki/Haskell/Lists_and_tuples

To differentiate a tuple of a parenthetical list (Arg1 arg2 arg3 ... argN) is necessarily required to use commas

haskell examples
(True, 1)
("Hello world", False)
(4, 5, "Six", True, 'b')
( (2,3,4), True)
( (2,3,4), [2,3] )
[ (1,2), (3,4), (5,6) ] @ list
[[1,2],[8,11],[4,5]] @ list of list, same dim
[[1,2],[8,11,5],[4,5]] @ list of list

more info: http://learnyouahaskell.com/starting-out


It is better to separate data types, because the source code is more understandable, it is auto-commented, a single data type for many things creates ambiguity, this is the weak point of the hp-prime xCAS

haskell language used lists [] to contain homogeneous lists and tuples ( ... ) for different data types

#10: Use constants symbolic for TRUE and FALSE

5 3 > returns 1
best
5 3 > returns TRUE EVAL 1

'IFTE( EXPRESION==TRUE, A1, B0)'

TRUE FALSE AND returns FALSE
TRUE FALSE OR returns TRUE
---------
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)