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

Work In Progress: Migration of artist logic to the new FP approach #1

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

jrgonzalezg
Copy link
Collaborator

No description provided.


class ArtistRepositoryImp(val artistDataSets: List<ArtistDataSet>) : ArtistRepository {

/** Trampolined (async) recursion until all DataSets are exhausted or a right result is found */
fun <E, A> recurseDataSets(currentDataSets: List<ArtistDataSet>, acc: Result<E, A>, f:
Copy link

Choose a reason for hiding this comment

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

We should be able to generalize this for all datasets and place this function in the top level Repository interface

@raulraja raulraja merged commit d2b6dec into FineCinnamon:rr-fp-refactor Mar 2, 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