Join Slack
Powered by
is a collection with just one element really a sin...
# kotest
c
christophsturm
08/05/2022, 4:36 PM
is a collection with just one element really a singleton?
https://github.com/kotest/kotest/blob/0ba14983d485b1b1caef0e5a2cd7402ba47e34d2/kot[…]c/commonMain/kotlin/io/kotest/matchers/collections/singleton.kt
christophsturm
08/05/2022, 4:37 PM
a coworker of mine just used that matcher and it was very confusing to read.
https://en.wikipedia.org/wiki/Singleton_pattern
l
LeoColman
08/05/2022, 8:14 PM
I think it stands more for the SingletonList
LeoColman
08/05/2022, 8:14 PM
https://www.geeksforgeeks.org/collections-singletonlist-method-in-java-with-examples/
LeoColman
08/05/2022, 8:15 PM
Not about the Singleton pattern
s
sam
08/14/2022, 2:55 PM
The St lib uses the term single. We should maybe reword to that.
2
Views
Open in Slack
Previous
Next