Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
drop-while-iterable
Advanced tools
drop-while-iterable
exports a class that builds iterables that provide dropWhile method.
$ npm install drop-while-iterable --save
const I = require('drop-while-iterable')
const first = I.of(new Set([4, 2, 7, 8, 4, 7])) // (4 2 7 8 4 7)
const second = I.dropWhile(e => e % 2 === 0, first) // (7 8 4 7)
const third = I.dropWhile(e => e > 5, second) // (4 7)
// converting to array:
[...third] // [4 7]
// traversing values:
for (const val of third) {
// ...
}
// creating an iterator that traverses the values
let iterator = third[Symbol.iterator]()
iterator.next() // {value: 4, done: false}
iterator.next() // {value: 7, done: false}
iterator.next() // {value: undefined, done: true}
// Infinite iterable
const naturals = {
[Symbol.iterator]: function* () {
let i = 1
while(true) { yield i++ }
}
} // (1 2 3 4...)
I.dropWhile(e => e > 5, I.of(naturals)) // (6 7 8 9 10...)
MIT
FAQs
iterable class that provides dropWhile method
The npm package drop-while-iterable receives a total of 1 weekly downloads. As such, drop-while-iterable popularity was classified as not popular.
We found that drop-while-iterable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.