Oftentimes the collect method can be used instead of inject. Collect is simpler and should be used when it is acceptable.
Log in to post a comment.