Skip to content

Allow for even numbered arrays - #3

Merged
mazedlx merged 18 commits into
mazedlx:masterfrom
leonsegal:master
Apr 30, 2017
Merged

Allow for even numbered arrays#3
mazedlx merged 18 commits into
mazedlx:masterfrom
leonsegal:master

Conversation

@leonsegal

Copy link
Copy Markdown
Contributor

Hi

Hopefully all the requirements you set are met now!

Thanks
Leon

@mazedlx mazedlx left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use $array?

And please remove the whole .idea folder from your PR.

@leonsegal

Copy link
Copy Markdown
Contributor Author

Just used $array as it was shorter - I will change it back to $this->array and remove the idea folder (I didn't realise it was in there - I thought the ignore file got it! Spot the newb)!

@leonsegal

Copy link
Copy Markdown
Contributor Author

Just let me know what else I have to do and I will get on it!

Leon
:)

@mazedlx mazedlx left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last thing: change the variables from snake_case to camelCase.
Then we're good to go 😊

@leonsegal

Copy link
Copy Markdown
Contributor Author

Done!

I also simplified the return statement of even numbered arrays by removing the average_of_midpoints variable, as it seemed redundant!

:)

@mazedlx mazedlx left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@mazedlx
mazedlx merged commit fe4f874 into mazedlx:master Apr 30, 2017
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.

2 participants