txt: ## deepmap.md
  deepmap
  
  Combined from primary sources listed below.
  
  # [In Any](#___top "go to top of document")[§](#(Any)_method_deepmap "direct link")
  
  See primary documentation
  [in context](/type/Any#method_deepmap)
  for **method deepmap**.
  
  ```raku
  method deepmap(&block --> List) is nodal
  ```
  
  `deepmap` will apply `&block` to each element and return a new [`List`](/type/List) with the return values of `&block`, unless the element does the [`Iterable`](/type/Iterable) role. For those elements [deepmap](/routine/deepmap) will descend recursively into the sublist.
  
  ```raku
  say [[1,2,3],[[4,5],6,7]].deepmap(* + 1);
  # OUTPUT: «[[2 3 4] [[5 6] 7 8]]␤»
  ```
  
  In the case of [`Associative`](/type/Associative)s, it will be applied to its values:
  
  ```raku
  { what => "is", this => "thing", a => <real list> }.deepmap( *.flip ).say
  # OUTPUT: «{a => (laer tsil), this => gniht, what => si}␤»
  
  ```
  