aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-03-28 17:05:37 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-03-28 17:05:37 +0100
commit9269498702e0ede86aa48451e642921fdfd5a486 (patch)
tree819438dc0e522dda3cc64adc67d342c5569a0269
parent784a7564678e08ad6e9325c3c6e3fea06b8213c2 (diff)
Add monad/dyad type and comments
-rw-r--r--format.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/format.go b/format.go
index e980652..b1a939c 100644
--- a/format.go
+++ b/format.go
@@ -2,11 +2,13 @@ package main
import "fmt"
-type S string
-type I int64
-type F float64
-type C complex128
-type A interface{}
+type S string // string
+type I int64 // int
+type F float64 // float
+type C complex128 // complex
+type A interface{} // any
+type M func(A) A // monad
+type D func(A, A) A // dyad
func (s S) String() string {
return string(s)