Post Reply 
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!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Syntax Problems with map() and apply() - mark4flies - 05-23-2016 12:01 PM



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