Ed Holloway-George
1 min readJan 19, 2020

--

Hi Illia Kovalov thanks so much for your reply, I have certainly planned to continue this series but unfortunately found the time to do so. Maybe I shall look to continue in the next few months.

You are absolutely right in pointing out the function in question is pure by the definition you have provided, but as I am sure you’ll agree, the mutable state within the method should be removed when possible. That was the aim of that explanation, but maybe the use of ‘pure’ was ambiguous and confusing. Thanks for making me aware of that.

Also thank you for the removeAt(index) tip, for now, I shall leave my original in place but will certainly update my codebase in time to reflect this.

Many thanks for leaving a comment, please do share this if it was of use to you!

Ed

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Ed Holloway-George
Ed Holloway-George

Written by Ed Holloway-George

Lead Android Developer @ ASOS | Google Developer Expert for Android

No responses yet

Write a response