Jump to content

Factors of an integer: Difference between revisions

m
→‎Excel LAMBDA: Minor reduction of the main expression
m (→‎Excel : LAMBDA: (Lifted a few keywords into a different color plane by applying the syntax highlighting for LISP))
m (→‎Excel LAMBDA: Minor reduction of the main expression)
Line 2,152:
 
(See: [https://www.microsoft.com/en-us/research/blog/lambda-the-ultimatae-excel-worksheet-function/ The LAMBDA worksheet function in Excel])
<lang lisp>FACTORS=LAMBDA(n,
=LAMBDA(n,
IF(1 < n,
LET(
Line 2,165 ⟶ 2,164:
APPEND(lows)(
LAMBDA(x, n / x)(
IFREVERSE(
IF(froot <> nroot,
REVERSE( lows),
REVERSE( INIT(lows))
)
)
)
9,659

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.