Quick theoretical question: I have code which is ...
# arrow
g
Quick theoretical question: I have code which is parsing a GraphQL query into its AST, and then transforming that into a more specific "AST" (really just nested Kotlin dataclasses) Would this be something that
lenses
would be beneficial to for performance purposes, rather than creating an entire new AST object?
s
In terms of performance it will be equal to
copy
that is on
data class
but it has more functionality since it can also work over collections, sealed types etv
g
Ah got it -- thank you!