{"id":22116328,"url":"https://github.com/jmid/myers-stack","last_synced_at":"2025-03-24T05:41:26.098Z","repository":{"id":19663582,"uuid":"22916874","full_name":"jmid/myers-stack","owner":"jmid","description":"An OCaml implementation of a Myers stack","archived":false,"fork":false,"pushed_at":"2014-08-22T12:27:25.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T11:27:27.788Z","etag":null,"topics":[],"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/jmid.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}},"created_at":"2014-08-13T13:40:43.000Z","updated_at":"2014-08-13T13:42:00.000Z","dependencies_parsed_at":"2022-08-24T14:07:29.973Z","dependency_job_id":null,"html_url":"https://github.com/jmid/myers-stack","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/jmid%2Fmyers-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmid%2Fmyers-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmid%2Fmyers-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmid%2Fmyers-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmid","download_url":"https://codeload.github.com/jmid/myers-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217790,"owners_count":20579297,"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-12-01T12:26:55.132Z","updated_at":"2025-03-24T05:41:26.077Z","avatar_url":"https://github.com/jmid.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"Myers stack\n===========\n\nThis module implements a 'Myers stack' in OCaml.\n\nThe distinguishing feature of such stacks is arbitrary access in O(log n)\ntime and constant time length. The remaining operations match those of\nOCaml's builtin singly-linked lists.\n\nFor more information, see Myers:IPL83 \"An applicative random-access\nstack\" available here:\n  http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.188.9344\n\n\nTo build:\n---------\n\nOn the command line simply run:\n\n    $ make\n\n\nTo run:\n-------\n\nOn the command line run:\n\n    $ ocaml myers.cmo\n        OCaml version 4.01.0\n\n    # let l = Myers.fromlist [\"0\";\"1\";\"2\";\"3\";\"4\";\"5\";\"6\";\"7\"];;\n    val l : string Myers.t = \u003cabstr\u003e\n    # Myers.length l;;\n    - : int = 8\n    # Myers.hd (Myers.tl (Myers.tl l));;\n    - : string = \"2\"\n    # Myers.nth l 4;;                                           \n    - : string = \"4\"\n    # Myers.nth l 0;;\n    - : string = \"0\"\n    # \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmid%2Fmyers-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmid%2Fmyers-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmid%2Fmyers-stack/lists"}