Change to a more consistent alignment style.
[hope.git] / src / hope_result.erl
CommitLineData
6731749b
SK
1-module(hope_result).
2
3b156801
SK
3-export_type(
4 [ t/2
5 ]).
6731749b 6
3b156801
SK
7-export(
8 [ pipe/2
9 ]).
6731749b
SK
10
11
3b156801
SK
12-type t(A, B) ::
13 {ok, A}
14 | {error, B}
15 .
6731749b
SK
16
17
18pipe([] , X) -> X;
19pipe([F|Fs], X) ->
20 case F(X)
21 of {error, _}=E -> E
22 ; {ok, Y} -> pipe(Fs, Y)
23 end.
This page took 0.023431 seconds and 4 git commands to generate.