// GENERATED — DO NOT EDIT
///|
#borrow(items, result)
extern "c" fn moonbit_pango_reorder_items(
items : FixedArray[Item],
result : Ref[FixedArray[Item]],
) = "moonbit_pango_reorder_items"
///|
/// [Upstream documentation](https://gnome.pages.gitlab.gnome.org/pango/Pango/func.reorder_items.html).
pub fn reorder_items(items : Array[Item]) -> Array[Item] {
let result_ref : Ref[FixedArray[Item]] = Ref([])
moonbit_pango_reorder_items(FixedArray::from_array(items), result_ref)
let values : Array[Item] = Array::new(capacity=result_ref.val.length())
for value in result_ref.val {
values.push(value)
}
values
}