Skip to content

Commit

Permalink
Add chromosome conformance to Hashable.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinc86 committed Jan 24, 2022
1 parent a9376d9 commit ed4b8ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Genetics/Chromosome.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import Foundation

/// A `Chromosome` is an ordered set of elements which represent the solution to a problem.
public struct Chromosome: Codable, CustomStringConvertible, ExpressibleByArrayLiteral, MutableCollection, RangeReplaceableCollection {
public struct Chromosome: Codable, CustomStringConvertible, ExpressibleByArrayLiteral, Hashable, MutableCollection, RangeReplaceableCollection {

public typealias Index = Int

Expand Down

0 comments on commit ed4b8ca

Please sign in to comment.