Swiftpack.co - SteveTrewick/PeekableT as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by SteveTrewick.
SteveTrewick/PeekableT 1.0.0
A peekable iterator so you can see what's up next
⭐️ 0
🕓 2 years ago
.package(url: "https://github.com/SteveTrewick/PeekableT.git", from: "1.0.0")

PeekableT

A bone simple peekable iterator because I have written this or simmilar code dozens of times.

  let peekable = Peekable<Int>(elements: [1,2,3])
  
  peekable.next() == 1
  peekable.peek() == 2
  peekable.next() == 2
  ...
  

GitHub

link
Stars: 0
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics