mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 00:47:50 +01:00
13 lines
501 B
Plaintext
13 lines
501 B
Plaintext
print('--- arrayMap ----')
|
|
print(arrayMap(x -> x * 2, [1,2,3]))
|
|
|
|
print('--- arrayExists ----')
|
|
print(arrayExists(x -> x like '%nana%', ['apple', 'banana', 'cherry']))
|
|
print(arrayExists(x -> x like '%boom%', ['apple', 'banana', 'cherry']))
|
|
print(arrayExists(x -> x like '%boom%', []))
|
|
|
|
print('--- arrayFilter ----')
|
|
print(arrayFilter(x -> x like '%nana%', ['apple', 'banana', 'cherry']))
|
|
print(arrayFilter(x -> x like '%e%', ['apple', 'banana', 'cherry']))
|
|
print(arrayFilter(x -> x like '%boom%', []))
|