{"id":13992481,"url":"https://github.com/Ismael-VC/InfixFunctions.jl","last_synced_at":"2025-07-22T15:32:37.289Z","repository":{"id":70568639,"uuid":"109463966","full_name":"Ismael-VC/InfixFunctions.jl","owner":"Ismael-VC","description":"Julia infix function hack.","archived":false,"fork":false,"pushed_at":"2017-11-04T13:45:34.000Z","size":21,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-10T14:10:35.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ismael-VC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-11-04T03:30:45.000Z","updated_at":"2023-05-19T14:31:04.000Z","dependencies_parsed_at":"2023-04-14T02:17:31.310Z","dependency_job_id":null,"html_url":"https://github.com/Ismael-VC/InfixFunctions.jl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismael-VC%2FInfixFunctions.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismael-VC%2FInfixFunctions.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismael-VC%2FInfixFunctions.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismael-VC%2FInfixFunctions.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ismael-VC","download_url":"https://codeload.github.com/Ismael-VC/InfixFunctions.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227133826,"owners_count":17735809,"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":[],"created_at":"2024-08-09T14:02:00.478Z","updated_at":"2024-11-29T13:30:43.623Z","avatar_url":"https://github.com/Ismael-VC.png","language":"Julia","funding_links":[],"categories":["Julia"],"sub_categories":[],"readme":"# InfixFunctions\n\nJulia infix function *hack*, based on this Python hack:\n\n* http://code.activestate.com/recipes/384122-infix-operators\n\n***\n\n# Installation\n\n```julia\njulia\u003e Pkg.clone(\"https://github.com/Ismael-VC/InfixFunctions.jl\")\n```\n\n# Usage\n\n```julia\njulia\u003e using InfixFunctions\n\njulia\u003e @infix foo(x, y) = x + y\nfoo (generic infix function with 1 method)\n\njulia\u003e @infix function foo(x::T, y::T) where {T\u003c:Int}\n           return Complex(x + y)\n       end\nfoo (generic infix function with 2 methods)\n\njulia\u003e @infix (foo(x::T, y::S)::S) where {T\u003c:Int, S\u003c:Float64} = x - y\nfoo (generic infix function with 3 methods)\n\njulia\u003e 3.0 |foo| π\n6.141592653589793\n\njulia\u003e 3 |foo| 5\n8 + 0im\n\njulia\u003e 3 |foo| 5.\n-2.0\n\njulia\u003e @infix div\nINFO: div has been infixified\ndiv (generic function with 31 methods)\n\njulia\u003e 10 |div| 5\n2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIsmael-VC%2FInfixFunctions.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FIsmael-VC%2FInfixFunctions.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIsmael-VC%2FInfixFunctions.jl/lists"}