Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/bitfield/script
/ ExamplePipe_Reject
Function
ExamplePipe_Reject
script_test.go:2519–2524 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2517
}
2518
2519
func
ExamplePipe_Reject() {
2520
script.Echo(
"a\nb\nc\n"
).Reject(
"b"
).Stdout()
2521
// Output:
2522
// a
2523
// c
2524
}
2525
2526
func
ExamplePipe_RejectRegexp() {
2527
re := regexp.MustCompile(
"w.*d"
)
Callers
nothing calls this directly
Calls
3
Echo
Function · 0.92
Stdout
Method · 0.80
Reject
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…