-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Omar dev Assignment3 #33
base: master
Are you sure you want to change the base?
Conversation
Looks like you need to give the step if you also need the 4th parameter. |
@@ -26,11 +25,26 @@ defmodule Ex01 do | |||
2 is the program well laid out, appropriately using indentation, | |||
blank lines, vertical alignment | |||
""" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10 + 10
@@ -1,6 +1,24 @@ | |||
|
|||
defmodule Ex02 do | |||
|
|||
@name __MODULE__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-4
You have a couple of "unused variable" warnings here.
You need to clear these up before submitting.
@@ -60,7 +60,22 @@ defmodule Ex03 do | |||
""" | |||
|
|||
def pmap(collection, process_count, function) do | |||
« your code here » | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
30
(although I'd rather not have the pipeline with comments and blank lines in it—for some reason the convention is that they should all be adjacent.
RE: Enum.chunk(num_chunks, num_chunks, [])
According to http://elixir-lang.org/docs/stable/elixir/Enum.html#chunk_by/2,
chunk(enumerable, count, step, leftover \ nil) step is optional, and defaults to count if not passed.
I tried to do Enum.chunk(num_chunks) but it didn't work.
Any idea why that is?