What is the best way to change external variable with Optional? #96
Answered
by
tboychuk
aquariusmaster
asked this question in
Q&A
-
I need to change some external variable in case of optional is present. What is the best way to do that with Optional.
As far as I know it is not recommended to change external variable inside lambda. In my case the external variable is HttpResponse response.
|
Beta Was this translation helpful? Give feedback.
Answered by
tboychuk
Jul 26, 2021
Replies: 1 comment
-
@aquariusmaster the first option is fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aquariusmaster
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@aquariusmaster the first option is fine.