ここまで書いてからHaskellのDebug.Traceと似てる気がした。でも
tap :: a -> (a -> m b) -> m a
tap a action = do
action a
return a
とかの方がそれっぽい気もする。
Conversation
Notices
-
こるもJS (cormojs@mstdn.maud.io)'s status on Tuesday, 11-Sep-2018 14:35:17 JST こるもJS
ここまで書いてからHaskellのDebug.Traceと似てる気がした。でも
tap :: a -> (a -> m b) -> m a
tap a action = do
action a
return a
とかの方がそれっぽい気もする。
senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.