Crate sorted_rs

source ·

Enums

  • Trend is used to describe the trending of input which u want to check

Functions

  • example: let nums = vec![1, 2, 3, 4, 5, ….]; is_sorted(&nums, Trend::Ascending); let nums = vec![9, 8, 7, 6, 5, ….]; is_sorted(&nums, Trend:Descending);