home
/
code
/
hope.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add specs.
[hope.git]
/
src
/
hope_result.erl
diff --git
a/src/hope_result.erl
b/src/hope_result.erl
index
a40629a
..
5d0ea7e
100644
(file)
--- a/
src/hope_result.erl
+++ b/
src/hope_result.erl
@@
-16,6
+16,13
@@
.
+-spec pipe([F], X) ->
+ t(Ok, Error)
+ when X :: any()
+ , Ok :: any()
+ , Error :: any()
+ , F :: fun((X) -> t(Ok, Error))
+ .
pipe([] , X) -> X;
pipe([F|Fs], X) ->
case F(X)
This page took
0.020281 seconds
and
4
git commands to generate.