Skip to content

Commit

Permalink
Organize DataStructures into categories (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbean authored Aug 28, 2019
1 parent 9189c0a commit aef5b88
Show file tree
Hide file tree
Showing 59 changed files with 7 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by James Bean on 6/29/18.
//

// TODO: Consider moving to the `Algorithms` module.
extension Array {

/// - Returns: Array with the `element` appended.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Destructure

// TODO: Consider moving to the `Algorithms` module.
extension Sequence where Element: Equatable {

/// - Returns: `true` if there are one or fewer elements in `self`, or if all elements in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Algebra

// TODO: Consider moving to the `Algebra` module.
extension ClosedRange: Zero where Bound: Zero {

public static var zero: ClosedRange {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//

/// Unifying interface for `Range` and `ClosedRange` types.
///
/// TODO: Consider using Standard Library's `RangeExpression` protocol instead.
public protocol RangeProtocol {
associatedtype Bound: Comparable
var lowerBound: Bound { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by James Bean on 6/29/18.
//

// TODO: Consider moving to the `Algorithms` module.
extension Sequence {

/// All of the values which are the least or greatest given the `areInIncreasingOrder` closure.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by James Bean on 6/29/18.
//

// TODO: Consider moving to the `Algorithms` module.
extension Set {

public func inserting(_ element: Element) -> Set {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit aef5b88

Please sign in to comment.