I got this Map: Map(term -> Buffer(hello), callback -> Buffer(jsonp1350647507240)) and I want to extract the values hello and jsonp1350647507240 from it. How do I do this?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can access just the values of a
Mapby callingvaluesFrom the docs:
def values: Iterable[B]I can only assume that
helloandjsonp135...0are supposed to be strings, in which case you could just usemkStringon the buffers.The end result would be: