txt: ## values.md
  values
  
  Combined from primary sources listed below.
  
  # [In List](#___top "go to top of document")[§](#(List)_routine_values "direct link")
  
  See primary documentation
  [in context](/type/List#routine_values)
  for **routine values**.
  
  ```raku
  sub    values($list --> Seq:D)
  method values(List:D: --> Seq:D)
  ```
  
  Returns a sequence of the list elements, in order.
  
  ```raku
  say (1,2,3,4).^name;        # OUTPUT: «List␤»
  say (1,2,3,4).values.^name; # OUTPUT: «Seq␤»
  ```
  
  # [In role Baggy](#___top "go to top of document")[§](#(role_Baggy)_method_values "direct link")
  
  See primary documentation
  [in context](/type/Baggy#method_values)
  for **method values**.
  
  ```raku
  method values(Baggy:D: --> Seq:D)
  ```
  
  Returns a [`Seq`](/type/Seq) of all values, i.e. weights, in the `Baggy` object.
  
  ```raku
  my $breakfast = bag <eggs spam spam spam>;
  say $breakfast.values.sort;                      # OUTPUT: «(1 3)␤»
  
  my $n = ("a" => 5, "b" => 2, "a" => 1).BagHash;
  say $n.values.sort;                              # OUTPUT: «(2 6)␤»
  ```
  
  # [In Capture](#___top "go to top of document")[§](#(Capture)_method_values "direct link")
  
  See primary documentation
  [in context](/type/Capture#method_values)
  for **method values**.
  
  ```raku
  multi method values(Capture:D: --> Seq:D)
  ```
  
  Returns a [`Seq`](/type/Seq) containing all positional values followed by all named argument values.
  
  ```raku
  my $capture = \(2, 3, 5, apples => (red => 2));
  say $capture.values; # OUTPUT: «(2 3 5 red => 2)␤»
  ```
  
  # [In Map](#___top "go to top of document")[§](#(Map)_method_values "direct link")
  
  See primary documentation
  [in context](/type/Map#method_values)
  for **method values**.
  
  ```raku
  method values(Map:D: --> Seq:D)
  ```
  
  Returns a [`Seq`](/type/Seq) of all values in the Map.
  
  ```raku
  my $m = Map.new('a' => (2, 3), 'b' => 17);
  say $m.values; # OUTPUT: «((2 3) 17)␤»
  ```
  
  # [In Pair](#___top "go to top of document")[§](#(Pair)_method_values "direct link")
  
  See primary documentation
  [in context](/type/Pair#method_values)
  for **method values**.
  
  ```raku
  multi method values(Pair:D: --> List:D)
  ```
  
  Returns a [`List`](/type/List) containing the [value](/type/Pair#method_value) of the invocant.
  
  ```raku
  say (Raku => "d").values;                         # OUTPUT: «(d)␤»
  ```
  
  # [In Any](#___top "go to top of document")[§](#(Any)_method_values "direct link")
  
  See primary documentation
  [in context](/type/Any#method_values)
  for **method values**.
  
  ```raku
  multi method values(Any:U:)
  multi method values(Any:D:)
  ```
  
  Will return an empty list for undefined or class arguments, and the object converted to a list otherwise.
  
  ```raku
  say (1..3).values; # OUTPUT: «(1 2 3)␤»
  say List.values;   # OUTPUT: «()␤»
  ```
  
  # [In role Setty](#___top "go to top of document")[§](#(role_Setty)_method_values "direct link")
  
  See primary documentation
  [in context](/type/Setty#method_values)
  for **method values**.
  
  ```raku
  multi method values(Setty:D: --> Seq:D)
  ```
  
  Returns a [`Seq`](/type/Seq) containing as many `True` values as the set has elements.
  
  ```raku
  my $s = Set.new(1, 2, 3);
  say $s.values;                                    # OUTPUT: «(True True True)␤»
  ```
  