Decode an `@& Array Lean.Name` FFI argument into a `Vec `. Uses a fresh `GlobalCache` to deduplicate shared sub-names within the array (the cache keys by pointer identity, so repeat prefixes like `Lean.Meta.Grind.Arith.Cutsat` are decoded once). Callers don't need to manage the cache; it's dropped when this function returns. Preferred over going through `String` + `parse_name` at the FFI bo
(arr: &LeanArray<LeanBorrowed<'_>>)
| 633 | |
| 634 | /// Collect list elements as borrowed pointers (no refcount changes). |
| 635 | /// Uses `LeanList::to_vec` which preserves the `'a` lifetime from the |
| 636 | /// underlying Lean objects rather than tying it to a local borrow. |
| 637 | fn collect_list_borrowed<'a>( |
| 638 | list: LeanList<LeanBorrowed<'a>>, |
| 639 | ) -> Vec<LeanBorrowed<'a>> { |
| 640 | list.to_vec() |
| 641 | } |
no test coverage detected