Distinct power numbers: Difference between revisions

→‎AppleScript Functional: Swapped in NSMutableSet
(Add Factor)
(→‎AppleScript Functional: Swapped in NSMutableSet)
Line 56:
script integerPower
on |λ|(b, y)
b's setByAddingObjectaddObject:((x ^ y) as integer)
b
end |λ|
end script
Line 65 ⟶ 66:
sort(foldl(powers, ¬
current application's NSSetNSMutableSet's alloc's init(), xs)'s ¬
allObjects())
end distinctPowers
9,655

edits