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
true
if the population threshold value on the first argument is less than the secondDeclaration
Swift
public static func < (lhs: PopulationThreshold, rhs: PopulationThreshold) -> Bool
-
Returns
true
if the population threshold values matchDeclaration
Swift
public static func == (lhs: PopulationThreshold, rhs: PopulationThreshold) -> Bool