In my code, After an API call, I am getting
Some(Vector(72981, 72982)).
I need to get the vector out of Some so that I modify the Vector. Tried many things but no result.
In my code, After an API call, I am getting
Some(Vector(72981, 72982)).
I need to get the vector out of Some so that I modify the Vector. Tried many things but no result.
Using map you can modify what's in the Option (i.e. the Some in this case)
Some(Vector(72981, 72982)).map(vector => // do something with vector)
// Some(modifiedVector)
برچسب:
نویسنده: استخدام کار