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
🕓 3 weeks 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: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

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