I had been puzzled by the name of the `tap` operat...
# arrow
j
I had been puzzled by the name of the
tap
operators for quite a while, until I realized that maybe it wasn't meant to denote "knock" (like knock/tap on the door), but rather "faucet". This may be the result of living in the US where no one says "tap"; they say "faucet". And while "tap" is also a verb, "faucet" is always a noun. To "tap" is to "runTheFaucet" in the US. Wikipedia says:
Faucet is the most common term in the US, similar in use to "tap" in British English
blob shrug
s
The functionality was originally also requested with the name tap as a suggestion, and many contributors were already familiar with that name from Scala. I think the name tap comes from the fact that it _tap_s/touches the value inside the monad, but doesn't change or take out the value. It just taps / peeks it
Scala names are typically US based Cats-effects: cancelable Kotlin: cancellable
j
Interesting... Thanks for indulging my musings 😄