Skip to content

Commit

Permalink
Fix broken indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bzurkowski committed Mar 30, 2017
1 parent fae4805 commit c59a2ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/mas_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ seed_random() ->
%% @end
%%------------------------------------------------------------------------------
partition(L, 1) ->
[L];
[L];

partition(L, 2) ->
{A, B} = lists:partition(fun(_) -> rand:uniform(2) == 1 end, L),
[A, B];
{A, B} = lists:partition(fun(_) -> rand:uniform(2) == 1 end, L),
[A, B];

partition(L, N) ->
{Chunk, T} = lists:partition(fun(_) -> rand:uniform(N) == 1 end, L),
[Chunk | partition(T, N - 1)].
{Chunk, T} = lists:partition(fun(_) -> rand:uniform(N) == 1 end, L),
[Chunk | partition(T, N - 1)].

%%%=============================================================================
%%% Internal functions
Expand Down

0 comments on commit c59a2ec

Please sign in to comment.