@function __pluck($collection, $key) {
    @return __map($collection, __property($key));
}


/// Gets the value of `$key` from all elements in `$collection`.
///
///
/// @access public
/// @group Collection
/// @param {List|Map|string} $collection The collection to iterate over.
/// @param {string} $key The key of the property to pluck.
/// @returns {List} Returns the property values.
/// @example scss
/// $users: (
///   ( 'user': 'barney', 'age': 36 ),
///   ( 'user': 'fred',   'age': 40 )
/// );
/// $foo: _pluck($users, 'user');
/// // => ('barney', 'fred')
/// $user-index: _index-by($users, 'user');
/// $foo: _pluck($user-index, 'age');
/// // => (36, 40)

@function _pluck($args...) {
    @return call(get-function('__pluck'), $args...);
}
