Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

MergeSort

Fully qualified path: alexandria_sorting::merge_sort::MergeSort

pub impl MergeSort of Sortable;

Impl functions

sort

Arguments

  • arr - Array to sort

Returns

  • Array<T> - Sorted array

Fully qualified path: alexandria_sorting::merge_sort::MergeSort::sort

fn sort(mut array: Span<T>) -> Array<T>