Skip to content

Commit

Permalink
Cosmetic code changes..
Browse files Browse the repository at this point in the history
  • Loading branch information
waynewbishop committed Jul 22, 2016
1 parent 1368201 commit dd5b98d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions Source/Factories/HashList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class HashList<T> {



//add element to list
//add item to list
func append(_ element: T) -> HashResults {


Expand All @@ -33,7 +33,7 @@ class HashList<T> {



//test list types
//test element type
if let elementKey = model(with: element) {
hashIndex = self.createHash(elementKey)
}
Expand All @@ -60,7 +60,7 @@ class HashList<T> {

else {

print("a collision occured. implementing chaining..")
print("a collision occurred. implementing chaining..")
head = buckets[hashIndex]


Expand Down Expand Up @@ -133,8 +133,8 @@ class HashList<T> {


/*
note: since various structures will manage key data differently,
this model can be extended to support different types.
note: since various structures manage key data differently,
the model can be extended to support different types.
*/

switch element {
Expand Down
8 changes: 4 additions & 4 deletions Source/Factories/LinkedList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ public class LinkedList<T: Equatable> {


//check for instance
if head.key == nil {
return nil
guard head.key != nil else {
return nil
}


Expand Down Expand Up @@ -342,8 +342,8 @@ public class LinkedList<T: Equatable> {


//check for instance
if head.key == nil {
return nil
guard head.key != nil else {
return nil
}


Expand Down
2 changes: 1 addition & 1 deletion Source/Structures/HashElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation


//a generic element use with HashLists
//a generic hash element

class HashElement<T> {

Expand Down
2 changes: 1 addition & 1 deletion Source/Structures/enums.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ indirect enum Algorithm<T> {
}


//used to assess hash algorithm processing
//used for hash list processing

enum HashResults {

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -152,23 +152,23 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "SwiftTests/ListTest.swift"
timestampString = "490838503.068996"
timestampString = "490893117.644606"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "51"
endingLineNumber = "51"
startingLineNumber = "49"
endingLineNumber = "49"
landmarkName = "testStringList()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "SwiftTests/ListTest.swift"
timestampString = "490838496.854884"
timestampString = "490893117.644606"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "34"
Expand Down

0 comments on commit dd5b98d

Please sign in to comment.