lisa.utils: Add take() and consume()
take(): Lazily take the first/last N items of an iterable. consume(): Consume the first N items of an iterable, or all of it.
Loading
Please register or sign in to comment
take(): Lazily take the first/last N items of an iterable. consume(): Consume the first N items of an iterable, or all of it.