https://kotlinlang.org logo
#codereview
Title
# codereview
e

elect

05/27/2019, 2:15 PM
can this be converted to some functional-programming construct?
Copy code
int insertionIndex = 0;
                        for (insertionIndex = 0; insertionIndex < activeActionSetsList.Count; insertionIndex++) {
                            if (activeActionSetsList[insertionIndex].nPriority > activeSet.nPriority)
                                break;
                        }
d

Dominaezzz

05/27/2019, 2:39 PM
activeActionSetsList.indexOfFirst { it.nPriority > activeSet.nPriority }
?
e

elect

05/27/2019, 2:40 PM
didnt know that.. thanks
3 Views