aboutsummaryrefslogtreecommitdiff
path: root/format.go
diff options
context:
space:
mode:
Diffstat (limited to 'format.go')
-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)