-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from dn-m/clean-up-dict-proto
[QoI] Refine implementation of DataStructures
- Loading branch information
Showing
9 changed files
with
207 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// | ||
// Group.swift | ||
// Algebra | ||
// | ||
// Created by James Bean on 7/26/18. | ||
// | ||
|
||
/// Interface defining objects which operate as a group. `Group` extends the requirements of | ||
/// `Monoid` by adding the `Invertible` requirement. | ||
public protocol Group: Monoid, Invertible { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// Invertible.swift | ||
// Algebra | ||
// | ||
// Created by James Bean on 7/26/18. | ||
// | ||
|
||
/// Interface for types which have an inverse. | ||
public protocol Invertible { | ||
var inverse: Self { get } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.