Created
April 26, 2019 17:46
-
-
Save den-crane/515ccb4d3b85d6058389e02d6af895c1 to your computer and use it in GitHub Desktop.
CH arrays (K/V) iteration by arrayFilter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Right: | |
select arrayFilter((v, k) -> k = 'a', values, keys) from | |
(select ['a','a','b','a'] keys, [1,2,3,4] values) | |
Wrong: | |
select arrayMap(i -> values[i], arrayFilter( i -> keys[i] = 'a', arrayEnumerate(keys))) from | |
(select ['a','a','b','a'] keys, [1,2,3,4] values) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment