|
3 | 3 |
|
4 | 4 | __all__ = ["begin", "begin0", "lazy_begin", "lazy_begin0", |
5 | 5 | "pipe1", "piped1", "lazy_piped1", |
6 | | - "pipe", "piped", "getvalue", "lazy_piped", "runpipe", "exitpipe", |
| 6 | + "pipe", "piped", "lazy_piped", "exitpipe", |
7 | 7 | "pipec", # w/ curry |
8 | 8 | "do", "do0", "assign"] |
9 | 9 |
|
|
12 | 12 | from .fun import curry, iscurried |
13 | 13 | from .dynassign import dyn |
14 | 14 | from .arity import arity_includes, UnknownArity |
15 | | -from .singleton import Singleton |
| 15 | +from .symbol import sym |
16 | 16 |
|
17 | 17 | # sequence side effects in a lambda |
18 | 18 | def begin(*vals): |
@@ -143,16 +143,7 @@ def pipe1(value0, *bodys): |
143 | 143 | x = update(x) |
144 | 144 | return x |
145 | 145 |
|
146 | | -class Getvalue(Singleton): # singleton sentinel with a nice repr |
147 | | - """Sentinel; pipe into this to exit a shell-like pipe and return the current value.""" |
148 | | - def __repr__(self): # pragma: no cover |
149 | | - return "<sentinel for pipe exit>" |
150 | | -getvalue = Getvalue() |
151 | | -runpipe = getvalue # same thing as getvalue, but semantically better name for lazy pipes |
152 | | - |
153 | | -# New unified name for v0.15.0; deprecating the separate "getvalue" and "runpipe" as of v0.14.2. |
154 | | -# TODO: Now that we have symbols, in v0.15.0, change this to `sym("exitpipe")` and delete the `Getvalue` class. |
155 | | -exitpipe = getvalue |
| 146 | +exitpipe = sym("exitpipe") |
156 | 147 |
|
157 | 148 | class piped1: |
158 | 149 | """Shell-like piping syntax. |
|
0 commit comments