Dynamic depth addressing

by Ricardo Fernández Serrata

Version 1 (May 15, 2021)

Download (16 downloads)

Allows a flow (and user) to access any value in a nested (tree) container at runtime, regardless of depth. Mixed containers are also supported.

Suppose this flow is a function named "A". This is a table of identities:
x = A(x)
x = A(x, any_falsy_value)
x[k] = A(x, [k])

x[k_0][k_1][k_2]... [k_N] = A(x, [k_0, k_1, k_2, ... k_N])

x[0][1][2]... [N] = A(x, N+1)
x[0][1][2]... [N-1] = A(x, N)

For better performance (and to guarantee that the loop will halt if Infinity is used) when x becomes null (or it's already null) the loop breaks

3.0 average rating from 1 reviews

5 stars
0
4 stars
0
3 stars
1
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.