Syntax Problems with map() and apply()
|
05-23-2016, 12:01 PM
Post: #1
|
|||
|
|||
Syntax Problems with map() and apply()
I want to use the map() or apply() function to stream over a list or vector but I keep getting a syntax error, even when I enter the example from the User Guide or Help! Here is the first example from Help for apply():
apply( x->x^3, [1 2 3] ) results in a syntax error message. The cursor is left after the first occurrence of x. I use these functions in other languages all the time. I kind of think of solutions in terms of them - very useful! Please help me how to properly call them in HP PPL. Thanks! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)