[
https://issues.apache.org/jira/browse/METRON-1057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Josh Meyer updated METRON-1057:
-------------------------------
Description:
In addition to the new `ZIP` functions in Stellar, we should add a `ZIP_WITH`
and `ZIP_WITH_INDEX` functions. These have been implemented in other languages
(Haskell). Below are examples of these functions.
```
ZIP_WITH([1, 2, 3], [1, 2, 3], (a, b) -> a + b) == [2, 4, 6]
ZIP_WITH_INDEX([1, 2, 3]) == [[0,1], [1,2], [2,3]]
```
This was discussed shortly on this PR https://github.com/apache/metron/pull/652
was:
In addition to the new `ZIP` functions in Stellar, we should add a `ZIP_WITH`
and `ZIP_WITH_INDEX` functions. These have been implemented in other languages
(Haskell). Below are examples of these functions.
```
ZIP_WITH([1, 2, 3], [1, 2, 3], (a, b) -> a + b) == [2, 4, 6]
ZIP_WITH_INDEX([1, 2, 3]) == [[0,1], [1,2], [2,3]]
```
> Add ZIP_WITH and ZIP_WITH_INDEX Functions in Stellar
> ----------------------------------------------------
>
> Key: METRON-1057
> URL: https://issues.apache.org/jira/browse/METRON-1057
> Project: Metron
> Issue Type: New Feature
> Reporter: Josh Meyer
>
> In addition to the new `ZIP` functions in Stellar, we should add a `ZIP_WITH`
> and `ZIP_WITH_INDEX` functions. These have been implemented in other
> languages (Haskell). Below are examples of these functions.
> ```
> ZIP_WITH([1, 2, 3], [1, 2, 3], (a, b) -> a + b) == [2, 4, 6]
> ZIP_WITH_INDEX([1, 2, 3]) == [[0,1], [1,2], [2,3]]
> ```
> This was discussed shortly on this PR
> https://github.com/apache/metron/pull/652
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)