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 * returnsYou 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. 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 --------- |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)