Copyright | (c) OleksandrZhabenko 2020 |
---|---|
License | MIT |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
Maintainer : olexandr543@yahoo.com
Helps to order the 7 or less Ukrainian words (or their concatenations) to obtain (to some extent) suitable for poetry or music text. This module provides several different norms that allow to research the text and to create interesting sequences.
Different norms
norm1 :: [Int] -> Int Source #
The first norm for the list of non-negative Int
. For not empty lists equals to the maximum element.
norm2 :: [Int] -> Int Source #
The second norm for the list of non-negative Int
. For not empty lists equals to the sum of the elements.
norm3 :: [Int] -> Int Source #
The third norm for the list of non-negative Int
. For not empty lists equals to the sum of the doubled maximum element and the rest elements of the list.
norm5 :: [Int] -> Int Source #
The fifth norm for the list of non-negative Int
. For not empty lists equals to the sum of the elements quoted with sum of the two most minimum elements.