Created
February 9, 2020 15:06
-
-
Save made2591/365ad6ed9d0e98e2f821ebe37ba1ebcd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| func bind(x *Log, f Increment) *Log { | |
| val, op := f(x.Val) | |
| return &Log{Val: val, Op: fmt.Sprintf("%s%s; ", x.Op, op)} | |
| } | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment