{"id":22436484,"url":"https://github.com/graziele-fagundes/elixir","last_synced_at":"2025-06-12T16:06:35.013Z","repository":{"id":266165665,"uuid":"894787198","full_name":"graziele-fagundes/Elixir","owner":"graziele-fagundes","description":"Programação funcional usando Elixir","archived":false,"fork":false,"pushed_at":"2025-03-24T19:26:01.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T20:29:29.178Z","etag":null,"topics":["elixir","functional-programming"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graziele-fagundes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-11-27T01:46:44.000Z","updated_at":"2025-03-24T19:26:05.000Z","dependencies_parsed_at":"2025-02-09T23:23:59.284Z","dependency_job_id":"1558c787-f2e0-4f94-81ca-1152edb4cf56","html_url":"https://github.com/graziele-fagundes/Elixir","commit_stats":null,"previous_names":["graziele-fagundes/elixir"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/graziele-fagundes/Elixir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graziele-fagundes%2FElixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graziele-fagundes%2FElixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graziele-fagundes%2FElixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graziele-fagundes%2FElixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graziele-fagundes","download_url":"https://codeload.github.com/graziele-fagundes/Elixir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graziele-fagundes%2FElixir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259500139,"owners_count":22867334,"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","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":["elixir","functional-programming"],"created_at":"2024-12-06T00:07:31.266Z","updated_at":"2025-06-12T16:06:34.975Z","avatar_url":"https://github.com/graziele-fagundes.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Execução\n## Linux\n```\niex programa.ex\nNomeModulo.NomeFuncao(parametro1, parametro2)\n```\n## Windows\n```\niex.bat programa.ex\nNomeModulo.NomeFuncao(parametro1, parametro2)\n```\n\n# Módulos e Funções \n```\ndefmodule NomeModulo do\n    def NomeFuncao(n) do\n        n\n    end\nend\n```\n\n# Sintaxe\n```\ndef menor(x,y) do\n    cond do\n    x \u003e= y -\u003e y\n    true -\u003e x\n    end\nend\n\ndef menor(x,y) when x \u003e y do\n    y\nend\ndef menor(x,y) when y \u003e x do\n    x\nend\ndef menor(x,y) when y == x do\n    raise \"Erro\"\nend\n\ndef fat(0) do\n    1\nend\ndef fat(n) do\n    n * fat(n-1)\nend\n```\n\n# Listas\nGeralmente usamos recursão com um caso de lista vazia e um com [h|t].\n\n++          -\u003e Concatena Listas.\n\n[h|t]       -\u003e separa a lista em head e tail.\n\n[1 | [2,3]]   -\u003e Concatena uma head á um tail.\n\n# Átomos e Tuplas\n:legal                      -\u003e Átomo cujo valor e nome é legal.\n\n{:retangulo, 2, 3}          -\u003e Tupla de valores, tamanho imutável.\n\n# Funções Úteis\nrem(10,3)                   -\u003e Devolve o resto da divisão.\n\nString.reverse(\"string\")    -\u003e Reverte uma string.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraziele-fagundes%2Felixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraziele-fagundes%2Felixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraziele-fagundes%2Felixir/lists"}