Skip to content

Commit

Permalink
stream argument building
Browse files Browse the repository at this point in the history
  • Loading branch information
benwilson512 committed May 4, 2015
1 parent 5ff2b3f commit f469515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ex_aws/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ defmodule ExAws.Client do
end

def build_arguments(n) do
0..1000
Stream.iterate(0, &(&1+1))
|> Stream.map(&("arg#{&1}"))
|> Stream.map(&String.to_atom/1)
|> Enum.take(n)
Expand Down
1 change: 1 addition & 0 deletions mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"hackney": {:hex, :hackney, "1.1.0"},
"httpoison": {:hex, :httpoison, "0.6.2"},
"httpotion": {:hex, :httpotion, "2.0.0"},
"ibrowse": {:git, "git://github.com/cmullaparthi/ibrowse.git", "d2e369ff42666c3574b8b7ec26f69027895c4d94", [tag: "v4.1.1"]},
"idna": {:hex, :idna, "1.0.2"},
"jsx": {:hex, :jsx, "2.5.3"},
"mixunit": {:hex, :mixunit, "0.9.1"},
Expand Down

0 comments on commit f469515

Please sign in to comment.