Skip to content

Commit

Permalink
Add loops.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronriekenberg committed Jun 11, 2024
1 parent 96aeb47 commit 5971cfb
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ fun main() {
key = "123", value = "345",
)

map.put(
key = "234", value = "234",
)
for (i in 0 until 100) {
map.put(
key = "234", value = "234",
)
}

logger.info { "map.size = ${map.size}" }

Expand All @@ -66,7 +68,9 @@ fun main() {

logger.info { "got value = $value" }

value = map.get(key = "234")
for (i in 0 until 100) {
value = map.get(key = "234")
}

logger.info { "got value = $value" }

Expand Down

0 comments on commit 5971cfb

Please sign in to comment.