{"id":21509852,"url":"https://github.com/j-christl/ocaml-utils","last_synced_at":"2025-03-17T15:16:12.924Z","repository":{"id":78679310,"uuid":"158741068","full_name":"j-christl/OCaml-utils","owner":"j-christl","description":"Some basic OCaml utility functions I will keep updating while learning functional programming","archived":false,"fork":false,"pushed_at":"2019-01-13T20:08:24.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T01:11:11.107Z","etag":null,"topics":["functional","functional-programming","ocaml","ocaml-utils","utility-function"],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/j-christl.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":"2018-11-22T19:07:56.000Z","updated_at":"2019-01-13T20:08:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b34c1b9-66e1-48d5-82ff-f0309c22d511","html_url":"https://github.com/j-christl/OCaml-utils","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/j-christl%2FOCaml-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-christl%2FOCaml-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-christl%2FOCaml-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-christl%2FOCaml-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j-christl","download_url":"https://codeload.github.com/j-christl/OCaml-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056430,"owners_count":20390720,"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":["functional","functional-programming","ocaml","ocaml-utils","utility-function"],"created_at":"2024-11-23T21:32:33.128Z","updated_at":"2025-03-17T15:16:12.919Z","avatar_url":"https://github.com/j-christl.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCaml-utils\n\u003cbr/\u003e\u003cbr/\u003e\n\u003ca href=\"http://ocaml.org\"\u003e\n  \u003cimg src=\"http://ocaml.org/logo/Colour/PNG/colour-logo.png\"\n       alt=\"OCaml\"\n       width=200px /\u003e\n\u003c/a\u003e\n\u003cbr/\u003e\u003cbr/\u003e\nSome basic OCaml utility functions I will keep updating while learning functional programming\n\n## Usage\n```ocaml\n$ ocaml\n        OCaml version 4.07.0\n\n# #use \"ocaml-utils.ml\";;\n```\n\n## Current functions\n\n```ocaml\nmodule YList :\n  sig\n    val list_reverse : 'a list -\u003e 'a list\n    val list_size : 'a list -\u003e int\n    val list_index_of : 'a list -\u003e 'a -\u003e int\n    val list_contains : 'a list -\u003e 'a -\u003e bool\n    val list_get_element : 'a list -\u003e int -\u003e 'a\n    val list_map : ('a -\u003e 'b) -\u003e 'a list -\u003e 'b list\n    val list_replace_element : 'a list -\u003e 'a -\u003e 'a -\u003e 'a list\n    val list_set_at_index : 'a list -\u003e int -\u003e 'a -\u003e 'a list\n  end\nmodule YSequences :\n  sig\n    val fib : int -\u003e int\n    val fac : int -\u003e int\n  end\nmodule YMap :\n  sig\n    val map_is_empty : 'a list -\u003e bool\n    val map_get : 'a -\u003e ('a * 'b) list -\u003e 'b option\n    val map_put : 'a -\u003e 'b -\u003e ('a * 'b) list -\u003e ('a * 'b) list\n    val map_contains_key : 'a -\u003e ('a * 'b) list -\u003e bool\n    val map_remove : 'a -\u003e ('a * 'b) list -\u003e ('a * 'b) list\n    val map_keys : ('a * 'b) list -\u003e 'a list\n    val map_values : ('a * 'b) list -\u003e 'b list\n  end\nmodule YBintree :\n  sig\n    type 'a bintree = Empty | Node of 'a * 'a bintree * 'a bintree\n    type traverse_order = PREORDER | INORDER | POSTORDER\n    val bintree_insert : 'a -\u003e ('a -\u003e 'a -\u003e int) -\u003e 'a bintree -\u003e 'a bintree\n    val bintree_print : 'a bintree -\u003e traverse_order -\u003e ('a -\u003e unit) -\u003e unit\n    val bintree_contains : 'a -\u003e ('a -\u003e 'a -\u003e int) -\u003e 'a bintree -\u003e bool\n  end\nmodule YBasic :\n  sig\n    val string_to_charlist : string -\u003e char list\n    val is_balanced : string -\u003e bool\n  end\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-christl%2Focaml-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj-christl%2Focaml-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-christl%2Focaml-utils/lists"}