lean4-htt/src/include/lean
Cameron Zwarich dfc8e38a21
feat: add array access functions that return a borrowed result (#9864)
This PR adds new variants of `Array.getInternal` and
`Array.get!Internal` that return their argument borrowed, i.e. without a
reference count increment. These are intended for use by the compiler in
cases where it can determine that the array will continue to hold a
valid reference to the element for the returned value's lifetime.

In the future, this will likely be replaced by a return value borrow
annotation, in which case the special variant of the functions could be
removed, with the compiler inserting an extra `inc` in the non-borrow
cases.
2025-08-12 04:25:14 +00:00
..
lean.h feat: add array access functions that return a borrowed result (#9864) 2025-08-12 04:25:14 +00:00
lean_gmp.h fix: do not dllexport symbols in core static libraries (#3601) 2024-03-15 11:58:34 +00:00
lean_libuv.h feat: link LibUV (#4963) 2024-08-12 12:33:24 +00:00