Module:MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
Added functions for mos relatives (parent, children/daughters, and sister)
Ganaram inukshuk (talk | contribs)
Added function to check for a valid mos
Line 148: Line 148:
function p.sister_mos(mos)
function p.sister_mos(mos)
return mos.new(mos.ns, mos.nL, mos.equave)
return mos.new(mos.ns, mos.nL, mos.equave)
end
-- Is the mos valid? It should have positive-integer values for nL and ns.
function p.is_valid_mos(mos)
return mos.nL > 0 and mos.ns > 0
end
end