Skip to content

A powershell module that provides iterator/pipeline adaptors.

License

Notifications You must be signed in to change notification settings

insomnimus/ps-itertools

Repository files navigation

Itertools

A collection of iterator adaptors for powershell pipelines.

Building The Module

You will need:

  • git to clone the repository.
  • powershell version 7.0 or above to, well, run the build script and to use the module.
  • dotnet cli to build the part of the module that's written in C#.
git clone https://github.com/insomnimus/ps-itertools
cd ps-itertools

./build.ps1 -release

# Import the module
import-module ./Itertools

Documentation

See here for every cmdlet in one page.

See here to view the cmdlets separately.

Commands Overview

  • Add-Index: Enumerates items from the pipeline.
  • Chain-Pipe: Appends items at the end of the pipeline.
  • Fold-Pipe: Applies a reducing operation to every item in the pipeline, yielding a single value.
  • Join-Pipe: Joins items from the pipeline with values from another collection or script.
  • Measure-Count: Calculates the number of items in the pipeline, ignoring their values.
  • Measure-Max: Finds the item with the highest value from the pipeline.
  • Measure-Min: Finds the item with the lowest value in the pipeline.
  • Skip-Item: Skips items from the pipeline.
  • Switch-Pipe: Alternates between the pipeline and a collection.
  • Take-Item: Takes items from the pipeline.
  • Test-All: Tests if all items from the pipeline satisfy a predicate.
  • Test-Any: Tests if any item from the pipeline satisfies a predicate.
  • Test-None: Tests if no item from the pipeline satisfies a predicate.

About

A powershell module that provides iterator/pipeline adaptors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published