Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
7 subscribers
Views
3042 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Is it possible to use apply() with a rule/function where the array is not the fi
Jason Ruvinsky
Certified Senior Developer
over 10 years ago
Is it possible to use apply() with a rule/function where the array is not the first parameter? Can I specify the parameters by name, rather than order, when using a looping function? (And if so, is there an example?)...
OriginalPostID-91443
OriginalPostID-91443
Discussion posts and replies are publicly visible
Parents
0
Steven Miccile
Appian Employee
over 10 years ago
The more elegant method is to use partial functions. For example, if you want to apply over the index function, but you want to apply over the second parameter, not the first, you can do the following:
apply(fn!index(firstArray,_,default),secondArray)
An expression like this should apply over the second array.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Steven Miccile
Appian Employee
over 10 years ago
The more elegant method is to use partial functions. For example, if you want to apply over the index function, but you want to apply over the second parameter, not the first, you can do the following:
apply(fn!index(firstArray,_,default),secondArray)
An expression like this should apply over the second array.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data