PopulationThreshold
public enum PopulationThreshold
An enum for specifying limits on the population of Replicators in Ecosystems
-
allow as many as possible
Declaration
Swift
case unlimited -
allow at most one
Declaration
Swift
case one -
allow a fixed number of individuals
Declaration
Swift
case fixedPool(ofSize: Int, withPicker: (Int) -> Int)
-
Returns
trueif the population threshold value on the first argument is less than the secondDeclaration
Swift
public static func < (lhs: PopulationThreshold, rhs: PopulationThreshold) -> Bool -
Returns
trueif the population threshold values matchDeclaration
Swift
public static func == (lhs: PopulationThreshold, rhs: PopulationThreshold) -> Bool
PopulationThreshold Enumeration Reference