aftovolio-0.2.1.0: An AFTOVolio implementation for creating texts with special phonetic / prosodic properties.
Copyright(c) OleksandrZhabenko 2020-2024
LicenseMIT
Maintaineroleksandr.zhabenko@yahoo.com
StabilityExperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Aftovolio.PermutationsArr

Description

Permutations and universal set functions for the phonetic-languages series and phladiprelio of packages (AFTOVolio-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 #