Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
57
Task/Fibonacci-sequence/Excel/fibonacci-sequence-2.excel
Normal file
57
Task/Fibonacci-sequence/Excel/fibonacci-sequence-2.excel
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
APPENDROWS
|
||||
=LAMBDA(xs,
|
||||
LAMBDA(ys,
|
||||
LET(
|
||||
nx, ROWS(xs),
|
||||
rowIndexes, SEQUENCE(nx + ROWS(ys)),
|
||||
colIndexes, SEQUENCE(
|
||||
1,
|
||||
MAX(COLUMNS(xs), COLUMNS(ys))
|
||||
),
|
||||
|
||||
IFERROR(
|
||||
IF(rowIndexes <= nx,
|
||||
INDEX(xs, rowIndexes, colIndexes),
|
||||
INDEX(ys, rowIndexes - nx, colIndexes)
|
||||
),
|
||||
NA()
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
APPLYN
|
||||
=LAMBDA(n,
|
||||
LAMBDA(f,
|
||||
LAMBDA(x,
|
||||
IF(0 < n,
|
||||
APPLYN(n - 1)(f)(
|
||||
f(x)
|
||||
),
|
||||
x
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
LASTNROWS
|
||||
=LAMBDA(n,
|
||||
LAMBDA(xs,
|
||||
LET(
|
||||
nRows, COUNTA(xs),
|
||||
x, MIN(nRows, n),
|
||||
|
||||
IF(0 < n,
|
||||
INDEX(
|
||||
xs,
|
||||
SEQUENCE(
|
||||
x, 1,
|
||||
1 + nRows - x, 1
|
||||
)
|
||||
),
|
||||
NA()
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue