Skip to content

Commit deb414e

Browse files
committed
add bag toString
1 parent 10cbf79 commit deb414e

File tree

1 file changed

+5
-0
lines changed
  • src/commonMain/kotlin/com/github/quillraven/fleks/collection

1 file changed

+5
-0
lines changed

src/commonMain/kotlin/com/github/quillraven/fleks/collection/bag.kt

+5
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,10 @@ class Bag<T>(
8989
values[i]?.let(action)
9090
}
9191
}
92+
93+
override fun toString(): String {
94+
return "Bag(size=$size, values=${values.contentToString()})"
95+
}
96+
9297
}
9398

0 commit comments

Comments
 (0)