<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 12, 2014 at 1:35 AM, Alexis Lee <span dir="ltr"><<a href="mailto:alexisl@hp.com" target="_blank">alexisl@hp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Alexis Lee said on Mon, Nov 10, 2014 at 05:34:13PM +0000:<br>
<span class="">> How about we support YAQL expressions? <a href="https://github.com/ativelkov/yaql" target="_blank">https://github.com/ativelkov/yaql</a><br>
> Plus some HOFs (higher-order functions) like cond, map, filter, foldleft<br>
> etc?<br>
<br>
</span>We could also use YAQL to provide the HOFs.<br>
<span class=""><br>
> Here's first_nonnull:<br>
><br>
>   config:<br>
>     Fn::Select<br>
>       - 0<br>
>       filter:<br>
>         - yaql: "$.0 != null"<br>
>         - <item1><br>
>         - <itemN><br>
<br>
</span>  config:<br>
    yaql: "$[$ != null][0]"<br>
    - <item1><br>
    - <itemN><br>
<br>
This approach requires less change to Heat, at the price of learning<br>
more YAQL.<br></blockquote><div><br></div><div>+1 to YAQL<br><br><br></div><div>-Angus<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
<br>
Alexis<br>
--<br>
Nova Engineer, HP Cloud.  AKA lealexis, lxsli.<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div></div>