tensort-1.0.1.3: Tunable sorting for responsive robustness and beyond
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Robustsort

Description

This module provides convenience functions that wraps common Robustsort functions to sort lists of Bits without dealing with type conversion

Synopsis

Documentation

robustsortP :: [Bit] -> [Bit] Source #

Takes a list of Bits and returns a sorted list of Bits using a Basic Mundane Robustsort algorithm with a Permutationsort adjudicator

This is a convenience function that wraps the robustsortP function

Examples

Expand
>>> robustsortP [16, 23, 4, 8, 15, 42]
[4,8,15,16,23,42]

robustsortB :: [Bit] -> [Bit] Source #

Takes a list of Bits and returns a sorted list of Bits using a Basic Mundane Robustsort algorithm with a Bogosort adjudicator

This is a convenience function that wraps the robustsortB function

Examples

Expand
>>> robustsortB [16, 23, 4, 8, 15, 42]
[4,8,15,16,23,42]

robustsortM :: [Bit] -> [Bit] Source #

Takes a list of Bits and returns a sorted list of Bits using a Basic Magic Robustsort algorithm

This is a convenience function that wraps the robustsortM function

Examples

Expand
>>> robustsortM [16, 23, 4, 8, 15, 42]
[4,8,15,16,23,42]

robustsortRP :: [Bit] -> [Bit] Source #

Takes a list of Bits and returns a sorted list of Bits using a Recursive Mundane Robustsort algorithm with a Permutationsort adjudicator

This is a convenience function that wraps the robustsortRP function

Examples

Expand
>>> robustsortRP [16, 23, 4, 8, 15, 42]
[4,8,15,16,23,42]

robustsortRB :: [Bit] -> [Bit] Source #

Takes a list of Bits and returns a sorted list of Bits using a Recursive Mundane Robustsort algorithm with a Bogosort adjudicator

This is a convenience function that wraps the robustsortRB function

robustsortRM :: [Bit] -> [Bit] Source #

Takes a list of Bits and returns a sorted list of Bits using a Recursive Magic Robustsort algorithm

This is a convenience function that wraps the robustsortRM function