Skip to content

Commit

Permalink
Create List.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepjindal authored Mar 19, 2024
1 parent 22d49d8 commit e53ae2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common_syntax/kotlin/List.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Make a string groupBy by substring

val inputList = listOf<String>("a","abc","xe", "df")
// this is the map of length and values associated with condition of it.length
inputList.groupBy{it.length}

0 comments on commit e53ae2c

Please sign in to comment.