{"id":17176296,"url":"https://github.com/evhub/coco-cs","last_synced_at":"2025-10-14T13:05:22.905Z","repository":{"id":79769343,"uuid":"81256609","full_name":"evhub/coco-cs","owner":"evhub","description":"Coconut documentation Czech translation by @Tovim","archived":false,"fork":false,"pushed_at":"2020-07-17T21:38:37.000Z","size":195,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-14T13:04:38.896Z","etag":null,"topics":["coconut","czech","functional","language","python"],"latest_commit_sha":null,"homepage":"http://coconut.readthedocs.io/cs/master/README.html","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evhub.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-07T21:33:38.000Z","updated_at":"2023-02-10T23:23:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"37dc043c-9cf3-4372-87af-90cc01d60e1f","html_url":"https://github.com/evhub/coco-cs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evhub/coco-cs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fcoco-cs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fcoco-cs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fcoco-cs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fcoco-cs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evhub","download_url":"https://codeload.github.com/evhub/coco-cs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evhub%2Fcoco-cs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018672,"owners_count":26086604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coconut","czech","functional","language","python"],"created_at":"2024-10-14T23:59:50.414Z","updated_at":"2025-10-14T13:05:22.866Z","avatar_url":"https://github.com/evhub.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Coconut\n=======\n\n.. toctree::\n   :maxdepth: 1\n\n   HELP\n   DOCS\n   FAQ\n\nCoconut (`coconut-lang.org`__) je varianta jazyka `Python \u003chttps://www.python.org/\u003e`_, která k syntaxi Pythonu **přidává** nové vlastnosti pro jednoduché a elegantní Pythonické **funkcionální programování**.\n\n__ Coconut_\n.. _Coconut: http://coconut-lang.org/\n\n\nCoconut je vyvíjen na `GitHub \u003chttps://github.com/evhub/coconut\u003e`_ a hostován na `PyPI \u003chttps://pypi.python.org/pypi/coconut\u003e`_.\n\n\nInstalace\n---------\n\nInstalace Coconut je stejně snadná jako otevření konzoly s promptem a zadání::\n\n    pip install coconut\n\nnačež máte celý svět Coconut u svých nohou.\n\nUkázky kódu\n-----------\n\n**Usměrnění programu** (pipeline-style programming):\n\n.. code-block:: coconut\n\n    \"hello, world!\" |\u003e print\n\n**Pohlednější lambda**:\n\n.. code-block:: coconut\n\n    (x) -\u003e x ** 2\n\n**Částečná aplikace** (partial application):\n\n.. code-block:: coconut\n\n    range(10) |\u003e map$((x) -\u003e x ** 2) |\u003e list\n\n\n**Porovnání předlohy** (pattern-matching):\n\n.. code-block:: coconut\n\n    match [head] + tail in [0, 1, 2, 3]:\n        print(head, tail)\n\n\n**Rozložené přiřazení** (destructuring assignment):\n\n.. code-block:: coconut\n\n    {\"list\": [0] + rest} = {\"list\": [0, 1, 2, 3]}\n\n\n**Infixová notace**:\n\n.. code-block:: coconut\n\n    5 `mod` 3 == 2\n\n\n**Operátorové funkce**:\n\n.. code-block:: coconut\n\n    range(15) |\u003e map$((*)$(2)) |\u003e list\n\n\n**Kompozice funkcí**:\n\n.. code-block:: coconut\n\n    (f .. g .. h)(x, y, z)\n\n\n**Líné seznamy**:\n\n.. code-block:: coconut\n\n    (| first_elem() |) :: rest_elems()\n\n\n**Paralelní programování**:\n\n.. code-block:: coconut\n\n    range(100) |\u003e parallel_map$((**)$(2)) |\u003e list\n\n\n**Optimalizace koncové rekurze**:\n\n.. code-block:: coconut\n\n    def factorial(n, acc=1):\n        case n:\n            match 0:\n                return acc\n            match _ is int if n \u003e 0:\n                return factorial(n-1, acc*n)\n        else:\n            raise TypeError(\"the argument to factorial must be an integer \u003e= 0\")\n\n**Algebraické datové typy**:\n\n.. code-block:: coconut\n\n    data Empty()\n    data Leaf(n)\n    data Node(l, r)\n\n    def size(Empty()) = 0\n\n    @addpattern(size)\n    def size(Leaf(n)) = 1\n\n    @addpattern(size)\n    def size(Node(l, r)) = size(l) + size(r)\n\n    size(Node(Empty(), Leaf(10))) == 1\n\n\nUžitečné odkazy\n---------------\n\nPodporu pro své první kroky v prostředí Coconut naleznete na těchto odkazech:\n\n* `Coconut \u003chttp://coconut-lang.org/\u003e`_\n* `Tutoriál \u003chttp://coconut.readthedocs.org/cs/latest/HELP.html\u003e`_: Dobrým výchozím bodem pro začátečníka v Coconut je jeho tutorial s případovými studiemi.\n* `Dokumentace \u003chttp://coconut.readthedocs.org/cs/latest/DOCS.html\u003e`_: Hledáte-li informaci o konkretní entitě, zkuste referenční dokumentaci jazyka Coconut.\n* `FAQ \u003chttp://coconut.readthedocs.org/cs/latest/FAQ.html\u003e`_: Chcete-li se zeptat, pro koho je Coconut určen a zda byste jej měl používat, navštivte Frequently Asked Questions .\n* `Create a New Issue \u003chttps://github.com/evhub/coconut/issues/new\u003e`_: If you're having a problem with Coconut, creating a new issue detailing the problem will allow it to be addressed as soon as possible.\n* `Gitter \u003chttps://gitter.im/evhub/coconut\u003e`_: For any questions, concerns, or comments about anything Coconut-related, ask around at Coconut's Gitter, a GitHub-integrated chat room for Coconut developers.\n\nPoznámka: Pokud výše uvedené linky nechodí, zkuste `mirror \u003chttp://pythonhosted.org/coconut/\u003e`_.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevhub%2Fcoco-cs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevhub%2Fcoco-cs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevhub%2Fcoco-cs/lists"}