# -*- coding: utf-8 -*-
from distutils.core import setup

packages = \
['nalude']

package_data = \
{'': ['*']}

setup_kwargs = {
    'name': 'nalude',
    'version': '0.3.0',
    'description': "A standard module.  Inspired by Haskell's Prelude.",
    'long_description': '# Table of Contents\n\n1.  [Prologue](#org8b6bf34)\n2.  [Nalude](#org0812938)\n3.  [Structure of Functions](#org658c0e2)\n    1.  [Folds and Traversals](#orgebe257d)\n    2.  [Lists](#org8fd809b)\n    3.  [Miscellaneous](#orgd3b3bf1)\n    4.  [String](#org8147070)\n    5.  [Specials](#org2de95e8)\n    6.  [Tuples](#orge6105ca)\n    7.  [Zip and Unzip](#orgcdca5f7)\n    8.  [Extra](#org5b1da39)\n4.  [Get Start](#orgccf98f8)\n    1.  [Install](#org1d1b386)\n5.  [Epoligue](#orgd300cef)\n    1.  [History](#org1d83dae)\n        1.  [Version 0.3.0](#orga174a69)\n        2.  [Version 0.2.0](#orga9ce38e)\n        3.  [Version 0.1.0](#orgad971e1)\n\n\n\n<a id="org8b6bf34"></a>\n\n# Prologue\n\nI like Haskell, also hope some of the prelude functions in Haskell can be used in Python.\n\nWish you enjoy coding with nalude.\n\n\n<a id="org0812938"></a>\n\n# Nalude\n\nNalude is a standard module, which is inspired by Haskell\'s Prelude.  Thus, nalude is also a\nlibrary of functional programming.\n\nNalude doesn\'t explicitly distinguish between Applicative\'s or monadic function since they are not\nwell differentiated in the basic structure of Python.  Of course, the main reason is that I am too\nfresh.\n\nThe following functions, Nalude tries to implement:\n\n1.  Folds and Traversals\n2.  Lists\n3.  Miscellaneous\n4.  Specials\n5.  Strings\n6.  Tuples\n7.  Zip and Unzip\n\nAt the same time, it also implements some functions which are only available in Python and are\nincluded in \\`extra\\`.\n\n\n<a id="org658c0e2"></a>\n\n# Structure of Functions\n\n\n<a id="orgebe257d"></a>\n\n## Folds and Traversals\n\n-   **foldr(f: Callable[[b, a], b], init: b, t: Sequence[a]):** Right-associative fold of a sequence.\n-   **foldl(f, init, t):** Left-associative fold of an iterable.  The same as `reduce`.\n-   **foldr1(f, t):** A variant of foldr without base case.\n-   **foldl1(f, t):** A variant of foldl without base case.\n-   **product(nums):** Computes the product of the numbers.\n-   **(HELP WANTED) traverse:** Map each element of a structure to an action, evaluate these actions\n    from left to right, and collect the results.\n-   **(HELP WANTED) sequence:** Evaluate each actions in the structure from left to right, and collect\n    the results.\n\n\n<a id="org8fd809b"></a>\n\n## Lists\n\n-   **head(xs):** Extract the first element of an iterable.\n-   **last(xs):** Extract the last element of an iterable.\n-   **null(xs):** Test whether the sequence is empty.\n-   Infinite lists\n    -   **iterate(f, x):** Yield a tuple of repeated applications of f to x.\n    -   **repeat(x):** Repeat x.\n    -   **replicate(n, x):** Return a list of length n with x the value of every element.\n    -   **cycle(xs):** Tie an iterable to infinite circuler one.\n\n    -   Sublists\n        -   **tail(xs):** Extract the elements after the head of a list.\n        -   **init(xs):** Extract all the elements of an iterable except the last one.\n        -   **take(n, xs):** Return the first n elements of sequence xs.\n        -   **drop(n, xs):** Return the remaining elements of xs after the first n elements.\n        -   **splitat(n, xs):** Return a tuple where the first element is xs prefix of length n and\n            second element is the remainder of the sequence xs.\n        -   **takewhile(p, xs):** Return the longest prefix of xs of elements that satisfy predicate p.\n        -   **dropwhile(p, xs):** Return the suffix remaining after takewhile(p, xs).\n        -   **(LAZY ONE HELP WANTED) span(p, xs):** Equal to (takewhile(p, xs), dropwhile(p, xs)).\n        -   **(LAZY ONE HELP WANTED) break\\_(p, xs):** Equal to (takewhile(not\\_(p), xs),\n            dropwhile(not\\_(p), xs)).\n\n\n<a id="orgd3b3bf1"></a>\n\n## Miscellaneous\n\n-   **id\\_(x):** Identity function.\n-   **const(x, \\_):** Evaluates to x for all inputs.\n-   **o(f1, f2):** (.) Function composition\n-   **flip(f):** Flip takes its two arguments into the reverse order of f.\n-   **until(p, f, x):** Yield the result of applying f until p holds.\n\n\n<a id="org8147070"></a>\n\n## String\n\n-   **lines(s):** Break up a string into a list of strings at newline characters.\n-   **unlines(xs):** The inverse operation of lines, append a newline to each.\n-   **words(s):** Break a string up into a list of words, which were delimited by white space.\n-   **unwords(xs):** The inverse operation of words, join words with space.\n\n\n<a id="org2de95e8"></a>\n\n## Specials\n\n-   **not\\_(f):** Boolean "not".\n-   **all\\_(p, xs):** Determine whether all elements of the structure satisfy the p.\n-   **any\\_(p, xs):** Determine whether sny elements of the structure satisfies the p.\n-   **concat(xss):** The concatenation of all the elements of a container of Sequences.\n-   **concatmap(f, xss):** Map a function over all the elements of a container and concatenate the\n    resulting lists.\n\n\n<a id="orge6105ca"></a>\n\n## Tuples\n\n-   **fst(t):** Extract the first component of a tuple.\n-   **snd(t):** Extract the second component of a tuple.\n-   **curry(f, a, b):** Converts an uncurried function to a curried function.\n-   **uncurry(f, ab@(a, b)):** Converts a curried function to a function on pairs.\n\n\n<a id="orgcdca5f7"></a>\n\n## Zip and Unzip\n\n-   **zipwith(f, \\*seqs):** Zipwith is map(f, zip), but f accept separate args instead of tuple\n-   **unzip(pairs):** Transform an iterable of pairs into a tuple of sequence. (Not lazy)\n\n\n<a id="org5b1da39"></a>\n\n## Extra\n\n-   **flatten(xs,\\*,ignore=(dict,)):** Flatten iterables of iterable to a single iterable.  It will\n    ignore instances in `ignore` tuple.\n\n\n<a id="orgccf98f8"></a>\n\n# Get Start\n\n\n<a id="org1d1b386"></a>\n\n## Install\n\n    pip install nalude\n\n\n<a id="orgd300cef"></a>\n\n# Epoligue\n\n\n<a id="org1d83dae"></a>\n\n## History\n\n\n<a id="orga174a69"></a>\n\n### Version 0.3.0\n\n-   **Data:** <span class="timestamp-wrapper"><span class="timestamp">&lt;Sun Mar 10, 2019&gt;</span></span>\n-   **Add:** -   Custom ignore when flatten iterable.\n\n\n<a id="orga9ce38e"></a>\n\n### Version 0.2.0\n\n-   **Data:** <span class="timestamp-wrapper"><span class="timestamp">&lt;Fri Feb 15, 2019&gt;</span></span>\n-   **Add:** -   flatten in extra.\n\n\n<a id="orgad971e1"></a>\n\n### Version 0.1.0\n\n-   **Data:** <span class="timestamp-wrapper"><span class="timestamp">&lt;Wed Feb 06, 2019&gt;</span></span>\n-   **Commemorate Version:** First Release.\n',
    'author': 'Nasy',
    'author_email': 'nasyxx+nalude@gmail.com',
    'url': 'https://github.com/nasyxx/nalude',
    'packages': packages,
    'package_data': package_data,
    'python_requires': '>=3.6,<4.0',
}


setup(**setup_kwargs)
