pipe

Pipe operator for nim.

Pure Nim score 30/100 · tests present · docs generated

Summary

Latest Version Unknown
License Unlicense
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install pipe
choosenim install pipe
git clone https://github.com/CosmicToast/pipe

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
pipe - - - - - - -

Source

Repository https://github.com/CosmicToast/pipe
Homepage https://github.com/CosmicToast/pipe
Documentation View Documentation
Registry Source nimble_official

README

Pipe

license

A pipe operator for nim, as seen in functional languages.

Origins

I was looking for a good old |> to use in nim. I found this. It sucked. It wasn't published. It used "example" in its description.

So I decided to write my own, with blackjack and hookers.

Examples

Please take a look in tests/test.nim for examples, but here's a tl;dr:

1 |> `+`(2) |> foo
# is equivalent to
foo(1+2)