Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update texts.

  • Loading branch information...
commit 57c0f3a1f4d5a994b1af9ab05a2de2032fbfe9af 1 parent e2bf917
YAMASHINA Hio authored December 29, 2011

Showing 1 changed file with 9 additions and 30 deletions. Show diff stats Hide diff stats

  1. 39  README.md
39  README.md
Source Rendered
@@ -33,11 +33,11 @@ SYNTAX
33 33
 ------
34 34
 
35 35
 wrap do-notation with ?do/1.
36  
-but there is erlang restriction, `Exprs' of ?do(Exprs) must be
  36
+but there is erlang restriction, `Exprs` of `?do(Exprs)` must be
37 37
 valid single erlang expression.
38 38
 
39  
-then, use with collection syntax.
40  
-there is following collection syntaxes.
  39
+then, introduce collection syntax.
  40
+there is following syntax candidates.
41 41
 
42 42
 1.  use list syntax.
43 43
 
@@ -48,31 +48,12 @@ there is following collection syntaxes.
48 48
           {value, 100},
49 49
           {value, {X, Y}}
50 50
         ]).
51  
-        
52  
-        ?do(monadmod, [
53  
-          ..
54  
-        ]).
55  
-        
56  
-        ?do([m1, m2, ...], [
57  
-          ..
58  
-        ]).
59  
-
60  
-    putting '_' for monadmod gets same behavior as ?do([..]).
61  
-
62  
-        % same as ?do([..]).
63  
-        ?do('_', [
64  
-          ..
65  
-        ]).
66 51
 
67 52
 2.  begin .. end block version of (1).
68 53
 
69 54
         ?do(begin
70 55
           ..
71 56
         end).
72  
-        
73  
-        ?do(MonadMod, begin
74  
-          ..
75  
-        end).
76 57
 
77 58
 3.  tuple.
78 59
 
@@ -80,14 +61,10 @@ there is following collection syntaxes.
80 61
           ..
81 62
         }).
82 63
         
83  
-        ?do(MonadMod, {
84  
-          ..
85  
-        }).
86  
-
87 64
 4.  list comprehension.
88 65
 
89 66
         ?do([
90  
-          MonadMod
  67
+          _
91 68
         ||
92 69
           X <- doyer_state:return(1),
93 70
           Y <- doyer_state:state(fun(_Seed) ->
@@ -114,13 +91,15 @@ there is following collection syntaxes.
114 91
           {value, X}
115 92
         end).
116 93
 
117  
-criteria of selection monadmod
118  
-------------------------------
  94
+criteria of selecting monad module
  95
+----------------------------------
119 96
 
120  
-currently, monadmod is selected by left hand value of bind.
  97
+currently, monad is selected by left hand value of bind.
121 98
 and it is occured at each invocation of bind.
122 99
 but these are not well as monadic behavior.
  100
+this will be changed.
123 101
 
  102
+you can specify monad module as `?do(mod, [..])`.
124 103
 
125 104
 (ja) 現在のmonad選択基準::
126 105
 

0 notes on commit 57c0f3a

Please sign in to comment.
Something went wrong with that request. Please try again.