Skip to content

Is initalValue argument preserved? #94

Closed Answered by GregoryConrad
busslina asked this question in Q&A
Discussion options

You must be logged in to vote

It’s up to you how you want to do it. Either or would work fine, but a use.value would guarantee that anything new passed in is ignored.

BTW, T extends Object? Is redundant, you can just use <T>. And also you don’t need to wrap modified with a closure, you can just return a bool modified.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by busslina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants