Join Slack
Powered by
I've forgot to tell you, <you can also use >`map`<...
# akkurate
j
Johann Pardanaud
09/10/2024, 4:31 PM
I've forgot to tell you,
you can also use
`map`
to transform your data before validating it:
Copy code
map { it.map { it.id } } .hasNoDuplicates()
👍🏼 1
Johann Pardanaud
09/10/2024, 4:31 PM
When looking at this code, I can perfectly see the use for a transform parameter on hasNoDuplicates, it would look like this:
Copy code
hasNoDuplicates { it.id }
➕ 2
4
Views
Open in Slack
Previous
Next