« first day (2665 days earlier)      last day (515 days later) » 

12:03 AM
REFRESH!
[Minesweeper] 109 Games Played. 69 Bombs Used. 15339 Moves Performed. 14 New Users
[rubberduck-vba/Rubberduck] 2 issues opened. 2 commits. 1 issues closed. 7 issue comments
 
 
11 hours later…
11:21 AM
PRs and Merges and releasebots. Oh My!
gets all tingly
 
 
4 hours later…
3:21 PM
:0
has anyone seen the new LAMBDA helper functions yet. And how LAMBDAS can be passed as function arguments?
=LET(times_table_generator,LAMBDA(base, LAMBDA(elems,SEQUENCE(elems)*base)), times_table_generator(6)(12))
that formula for example defines a lambda function which returns a function that generates a times table array. Hence times_table_generator(6)(12) - the 6 times table with 12 elements.
sorry, thought that was so crazy, had to share!
And this=LET(times_table_generator,LAMBDA(base, LAMBDA(elems,SEQUENCE(elems)*base)), times_table_generator(SEQUENCE(1,12))(12)) is a 12x12 array of all the times tables
 
3:38 PM
IIUC, a lambda is an inline, unnamed function. But now you can have a lambda (unnamed, inline function) that returns a function? Is that a named function that can then be called elsewhere?
 
I think these new functions entirely negate the use of VBA for udfs, except side effecting ones and ones which require static memory or referencing libraries.
 
i.e. you can have code that generates code?
i.e. they're releasing a virus generator?
 
No the secondary function isn't named, and a cell can't store an anonymous function. You have to use them straight away or save the top level first order function in the name manager
You see the second order function is immediately consumed in my example, although you can temporarily name it using the LET function which is quite neat I think
 
Oh, this is in Excel. Gotcha. I was thinking in C# (that's the only place I'd heard of lambda functions...)
 
Oops yeah forgot to clarify :) beta channel only for function as argument, and preview channel for the LAMBDA function
 
 
8 hours later…
11:47 PM
[rubberduck-vba/Rubberduck] 1417 stars vs. [decalage2/oletools] 1732 stars
 

« first day (2665 days earlier)      last day (515 days later) »