phonetic-languages-permutations-array-0.5.0.0: Permutations and universal set related functions for the phonetic-languages series
Copyright(c) OleksandrZhabenko 2020-2024
LicenseMIT
Maintaineroleksandr.zhabenko@yahoo.com
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

Phladiprelio.PermutationsArr

Description

Permutations and universal set functions for the phonetic-languages series and phladiprelio of packages (PhLADiPreLiO-related). This module uses no vectors, but instead uses arrays.

Synopsis

Documentation

universalSetGL Source #

Arguments

:: (Eq a, Foldable t, InsertLeft t a, Monoid (t a), Monoid (t (t a))) 
=> t a 
-> t (t a) 
-> (t a -> [a])

The function that is used internally to convert to the [a] so that the function can process further the permutations

-> (t (t a) -> [[a]])

The function that is used internally to convert to the needed representation so that the function can process further

-> [Array Int Int]

The list of permutations of Int indices starting from 0 and up to n (n is probably less than 7).

-> Array Int [a] 
-> [[a]] 

A key point of the evaluation -- the universal set of the task represented as a [[a]].

genPermutations :: (Ord a, Enum a, Num a) => Int -> Array Int [a] Source #

genPermutationsL :: (Ord a, Enum a, Num a) => Int -> [Array Int a] Source #