4 ms·
You can do: "Hello".method(:split).to_proc.curry[""] => ['H', 'e', 'l', 'l', 'o'] If you want to even make the receiver an argument it would take a l
by jroesch 14y ago
You can do:
"Hello".method(:split).to_proc.curry[""]
=> ['H', 'e', 'l', 'l', 'o']
If you want to even make the receiver an argument it would take a little more hoop jumping, but with a tiny monkey patch you can enable something like this:
"Hello".curry.split[""]