The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





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: 6 Guest(s)