You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to described an issue I'm seeing where I have a method I want to use but it isn't recognized when I call it within .map. I can't figure out a possible solution from the documentation.
I'm trying to understand what is described here in the wiki
https://github.com/ondra-m/ruby-spark/wiki/Passing-function
This seems to described an issue I'm seeing where I have a method I want to use but it isn't recognized when I call it within .map. I can't figure out a possible solution from the documentation.
Something like this doesn't work
def manipulate_data
line + " more stuff"
end
api_keys = requests_with_key.map(lambda {|line| [manipulate_data(line), 1]})
But I am unsure how I would make it work. Is it as simple as adding
requests_with_key.bind(method(:manipulate_data))
The text was updated successfully, but these errors were encountered: