خرید بک لینک

Vote count: 0

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.

asked 3 mins ago

1 Answer

Vote count: 0

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)

answered 27 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 21 خرداد 1395 ساعت: 17:33

صفحه بندی