Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adamgfraser
Copy link
Contributor

Resolves #3791.

@adamgfraser adamgfraser requested a review from mijicd June 10, 2020 13:52
@adamgfraser adamgfraser merged commit 69ace07 into zio:master Jun 10, 2020
@adamgfraser adamgfraser deleted the 3791 branch June 10, 2020 14:33
Comment on lines +194 to +195
get(k).flatMap(_.fold(put(k, v))(_ => STM.unit))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TMap should support putIfAbsent

3 participants