{"id":32275717,"url":"https://github.com/pschiffmann/lookaround-iterator.dart","last_synced_at":"2025-10-22T23:54:26.130Z","repository":{"id":56834260,"uuid":"100145765","full_name":"pschiffmann/lookaround-iterator.dart","owner":"pschiffmann","description":"Provides an iterator class with lookbehind and lookahead buffer.","archived":false,"fork":false,"pushed_at":"2018-11-08T18:14:21.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T23:54:24.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pub.dartlang.org/packages/lookaround_iterator","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pschiffmann.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-13T01:05:22.000Z","updated_at":"2019-09-18T02:10:25.000Z","dependencies_parsed_at":"2022-09-08T07:41:57.548Z","dependency_job_id":null,"html_url":"https://github.com/pschiffmann/lookaround-iterator.dart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pschiffmann/lookaround-iterator.dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschiffmann%2Flookaround-iterator.dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschiffmann%2Flookaround-iterator.dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschiffmann%2Flookaround-iterator.dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschiffmann%2Flookaround-iterator.dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pschiffmann","download_url":"https://codeload.github.com/pschiffmann/lookaround-iterator.dart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschiffmann%2Flookaround-iterator.dart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280534674,"owners_count":26346714,"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-22T02:00:06.515Z","response_time":63,"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":[],"created_at":"2025-10-22T23:54:23.677Z","updated_at":"2025-10-22T23:54:26.122Z","avatar_url":"https://github.com/pschiffmann.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"Dart lookaround iterator\n========================\n\n[![Build Status](https://travis-ci.com/pschiffmann/lookaround-iterator.dart.svg?branch=master)](https://travis-ci.com/pschiffmann/lookaround-iterator.dart)\n\nThe `LookaroundIterator` class exposes a fixed number of elements in the past and future of the current iteration element.\n\n```Dart\n// `it` is an iterator over a list of the numbers 1..10, currently\n// pointing at `4`.\nfinal it = LookaroundIterator(\n    List.generate(10, (n) =\u003e n + 1).iterator,\n    lookbehind: 2,\n    lookahead: 3)\n  ..moveNext()\n  ..moveNext()\n  ..moveNext()\n  ..moveNext();\n\n// Prints _2, 3, 4, 5, 6, 7_.\n// Notice the negative start index and the inclusive range `\u003c=`.\nfor (int i = -it.lookbehind; i \u003c= it.lookahead; i++) {\n  print(it[i]);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschiffmann%2Flookaround-iterator.dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpschiffmann%2Flookaround-iterator.dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschiffmann%2Flookaround-iterator.dart/lists"}