3 ms·
What on earth does grep have to do with side effects?
by quotemstr 5y ago
What on earth does grep have to do with side effects?
- chaps 5y agoAnd what makes you think side effects aren't possible in the model described? Think of grep as a way to control flow. If one side effect happens, send to stdout one thing. Another side effect, send something else. Then iterate over those outputs.