No description
Find a file
Chloe Kudryavtsev 70e0f6f4be v0.1.1
update pipe.nimble to reflect the correct license
2021-07-25 20:20:23 -04:00
tests Fix test: Variables can't be called 2017-06-20 08:57:38 -04:00
.gitignore Initial commit 2017-06-17 05:12:39 -04:00
pipe.nim Initial commit 2017-06-17 05:12:39 -04:00
pipe.nimble v0.1.1 2021-07-25 20:20:23 -04:00
Readme.md [license] Add license badge to readme 2017-08-12 22:49:14 -04:00
UNLICENSE relicense under unlicense 2020-04-28 11:37:49 -04:00

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)