Skip to content

Commit

Permalink
added get function
Browse files Browse the repository at this point in the history
  • Loading branch information
BazookaMusic committed Apr 8, 2019
1 parent 7aec25d commit ae0e488
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ func main() {
}
}

// get
item := head.Get(Int(dataAmount/3)) // get item with item.Equals(15) == true,
// useful to use set as a map
// nil if not contained


//remove
for index := 0; index < dataAmount; index++ {
if !head.Remove(Int(index)) {
Expand Down

0 comments on commit ae0e488

Please sign in to comment.