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
|
||||
--Matthew Ellison
|
||||
-- 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
|
||||
|
||||
|
||||
@@ -137,6 +137,7 @@ function getFactors(goalNumber)
|
||||
return factors;
|
||||
end
|
||||
|
||||
--This is a function the returns all divisors of the number passed to it
|
||||
function getDivisors(goalNumber)
|
||||
local divisors = {};
|
||||
--Start by checking that the number is positive
|
||||
|
||||
Reference in New Issue
Block a user