mirror of
https://bitbucket.org/Mattrixwv/luaclasses.git
synced 2025-12-06 18:33:59 -05:00
Updated documentation for getDivisors function
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
--luaClasses/Algorithms.lua
|
--luaClasses/Algorithms.lua
|
||||||
--Matthew Ellison
|
--Matthew Ellison
|
||||||
-- Created: 2-4-19
|
-- Created: 2-4-19
|
||||||
--Modified: 2-4-19
|
--Modified: 2-7-19
|
||||||
--This is a file of algorithms that I have found it useful to keep around at all times
|
--This is a file of algorithms that I have found it useful to keep around at all times
|
||||||
|
|
||||||
|
|
||||||
@@ -137,6 +137,7 @@ function getFactors(goalNumber)
|
|||||||
return factors;
|
return factors;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--This is a function the returns all divisors of the number passed to it
|
||||||
function getDivisors(goalNumber)
|
function getDivisors(goalNumber)
|
||||||
local divisors = {};
|
local divisors = {};
|
||||||
--Start by checking that the number is positive
|
--Start by checking that the number is positive
|
||||||
|
|||||||
Reference in New Issue
Block a user