Skip to content

Instantly share code, notes, and snippets.

@dminuoso dminuoso/foo.rb
Created Nov 6, 2017

Embed
What would you like to do?
def self.writer_path(*args)
-> (paths,val, obj) {
obj.deep_dup.tap { |o| o.dig(*paths) = val }
}.curry[*args]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.