BracketCove / SpaceNotes

SpacesNotes, by Ryan M. Kay, with inspiration from Martin Fowler, Robert C. Martin, and Darel Bitsy for architecture.
198 stars 113 forks source link

using inline <reified T> to convert querySnapShot to List<T> #2

Open ch8n opened 4 years ago

ch8n commented 4 years ago

Hi , @BracketCove I saw seeing your code, it's awesome, I see you were using repeating function to resultToList in which only type was varying, In Kotlin you can use to take inline type of the type so dont need to repeat it, you can read more : https://kotlinlang.org/docs/reference/inline-functions.html

I havent written test for this, but it was tested in my production code, Please do leave a review