recursive_sort: Standard functions implemented by recursion

View source: R/9_basic_recursive_functions.R

recursive_sortR Documentation

Standard functions implemented by recursion

Description

Standard functions implemented by recursion

Usage

recursive_sort(x, decreasing = FALSE)

Arguments

x

A vector that is not empty.

decreasing

Logical. Should the vector be sorted in descending order?

Details

Functions leveraging recursion.

Examples

library(functionalPlayground)

recursive_sort(1:10)
recursive_sort(10:1, TRUE)

gmcmacran/functional_playground documentation built on Aug. 5, 2024, 7:40 a.m.