public function pick($keys)
    {
        // Remove accepting array as first argument once destructuring arrays is supported (PHP 5.6)
        return $this->intersectKeys(array_flip(\is_iterable($keys) ? Arr::from($keys) : func_get_args()));
    }
public function pick($keys)
    {
        // Remove accepting array as first argument once destructuring arrays is supported (PHP 5.6)
        return $this->intersectKeys(array_flip(\is_iterable($keys) ? Arr::from($keys) : func_get_args()));
    }
Returns a bag with only `$keys`.

`$keys` should be passed in as multiple parameters if possible.
But if you have a list of keys they can be passed in as the first parameter.
Note that if you can use PHP 5.6+ syntax, you can do `pick(...$keys)` which is preferred.

Example:

Bag::from([
'a' => 'red',
'b' => 'blue',
'c' => 'green',
])
->pick('a', 'c', 'd');
// => Bag of ['a' => 'red', 'c' => 'green']

@param iterable|string|string[]|int|int[] ...$keys The keys to keep

@return static