<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Is it possible to use apply() with a rule/function where the array is not the fi</title><link>https://community.appian.com/discussions/f/rules/1641/is-it-possible-to-use-apply-with-a-rule-function-where-the-array-is-not-the-fi</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is it possible to use apply() with a rule/function where the array is not the fi</title><link>https://community.appian.com/thread/5895?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2013 02:28:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c134e6cf-940d-4670-8772-8e55d46a594e</guid><dc:creator>Jason Ruvinsky</dc:creator><description>That is a very nice trick, Steven. Any chance that could be added to the looping functions documentation page as an example?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use apply() with a rule/function where the array is not the fi</title><link>https://community.appian.com/thread/5894?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2013 01:59:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca49e66f-80ab-4289-8d18-31231190ead0</guid><dc:creator>Steven Miccile</dc:creator><description>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:&lt;br /&gt;&lt;br /&gt;apply(fn!index(firstArray,_,default),secondArray)&lt;br /&gt;&lt;br /&gt;An expression like this should apply over the second array.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use apply() with a rule/function where the array is not the fi</title><link>https://community.appian.com/thread/5808?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2013 00:35:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:724eb1cf-149a-432c-8c0e-f170a7438b46</guid><dc:creator>Jason Ruvinsky</dc:creator><description>Thanks for the partial evaluation link. I&amp;#39;ve used the rule to switch input order work-around before, but I was wondering if there was a more elegant method.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use apply() with a rule/function where the array is not the fi</title><link>https://community.appian.com/thread/5801?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2013 21:54:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0e56a2d9-820c-4560-93df-cb329c726994</guid><dc:creator>Steven Miccile</dc:creator><description>One option is to create an expression rule that switches the inputs of the function so that the array is the first argument and can be applied over.&lt;br /&gt;&lt;br /&gt;Here is some documentation on partial evaluations (underscore syntax):&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/wiki/73/Expressions#Partial_Evaluation_of_Rules_and_Type_Constructors"&gt;forum.appian.com/.../Expressions&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use apply() with a rule/function where the array is not the fi</title><link>https://community.appian.com/thread/5800?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2013 21:43:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7dcbc070-bb6d-4744-9c6a-270bfd598345</guid><dc:creator>Jason Ruvinsky</dc:creator><description>I&amp;#39;m also seeing some unusual syntax that I can&amp;#39;t find documented on the looping functions page here: &lt;a href="https://forum.appian.com/suite/wiki/72/Function_Recipes#Determine_if_Items_in_an_Array_are_Contained_Within_Another_Array"&gt;forum.appian.com/.../Function_Recipes&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;apply(&lt;br /&gt;  type!Person(firstName:_, lastName:_), &lt;br /&gt;  merge(pv!firstNames, pv!lastNames)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;How do I use apply with a rule, type, or function and include the parameters by keyword? I cannot find documentation explaining how the underscores are being used here as blanks, either.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use apply() with a rule/function where the array is not the fi</title><link>https://community.appian.com/thread/5799?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2013 21:31:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a2666ff-ead7-4215-a42d-e0a4a46c48cb</guid><dc:creator>Jason Ruvinsky</dc:creator><description>&lt;a href="https://forum.appian.com/suite/wiki/72/Expressions#By_Keyword"&gt;forum.appian.com/.../Expressions&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Shows how parameters can be passed by keyword, but it&amp;#39;s not clear to me how I would do this for a looping function.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>