File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -99,16 +99,15 @@ defmodule Access do
99
99
@ type key :: any
100
100
@ type value :: any
101
101
102
- @ type get_fun ( data , current_value ) ::
103
- ( :get , data , ( term -> term ) ->
104
- { current_value , new_data :: container } )
102
+ @ type get_fun ( data ) ::
103
+ ( :get , data , ( term -> term ) -> new_data :: container )
105
104
106
105
@ type get_and_update_fun ( data , current_value ) ::
107
106
( :get_and_update , data , ( term -> term ) ->
108
107
{ current_value , new_data :: container } | :pop )
109
108
110
109
@ type access_fun ( data , current_value ) ::
111
- get_fun ( data , current_value ) | get_and_update_fun ( data , current_value )
110
+ get_fun ( data ) | get_and_update_fun ( data , current_value )
112
111
113
112
@ doc """
114
113
Invoked in order to access the value stored under `key` in the given term `term`.
You can’t perform that action at this time.
0 commit comments