From 9269498702e0ede86aa48451e642921fdfd5a486 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 28 Mar 2015 17:05:37 +0100 Subject: Add monad/dyad type and comments --- format.go | 12 +++++++----- 1 file 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) -- cgit v1.2.3