Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

Lorsen
Copy link

@Lorsen Lorsen commented Oct 13, 2016

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?

@pragdave
Copy link
Contributor

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
"""

Copy link
Contributor

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__
Copy link
Contributor

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 »

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants