Souleymane Sidibe
Dec 31, 2021

--

Thanks Rygel 😊

Let's say we have only sms that content transactions of type TypeATransaction. So they will all be parsed by TypeATransactionCriteria. The crieterias below will receive an empty list. we only return the remaining list.

Actually, the correct getTransactions function returns a Unit and doesn't take a list of sms πŸ˜… .

I tried to make it as simple as possible. But you're right. In a real code base this function is a lil bit weird lol.

I'll update the gist. Thanks for pointing that πŸ‘πŸΎ

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

--

--

Souleymane Sidibe
Souleymane Sidibe

Written by Souleymane Sidibe

#developer #tech #kotlin #android lover

Responses (1)

Write a response