Dollar icon indicating copy to clipboard operation
Dollar copied to clipboard

Also support arrays wherever $ supports variadic parameters

Open tsheaff opened this issue 8 years ago • 3 comments

For example I cannot currently do this:

$.omit(myDictionary, keys: ["one", "two", "three"])

But must instead do this:

$.omit(myDictionary, keys: "one", "two", "three")

For lots of design paradigms (e.g. my blacklisted set of keys is shared and represented as an array, or I've derived the list of keys from an API and don't have them as individual values), this is frustrating.

This thread indicates that there is no language-specific way to pass an array into a variadic parameter. Thus I think $ should support this (the variadic versions can call into the array versions)

tsheaff avatar Sep 14 '16 19:09 tsheaff

Good idea. Will add.

ankurp avatar Sep 16 '16 14:09 ankurp

awesome

tsheaff avatar Sep 16 '16 16:09 tsheaff

+1

danielmhanover avatar Jan 02 '17 19:01 danielmhanover