{"id":26489780,"url":"https://github.com/bingus-dev/ilen","last_synced_at":"2025-03-20T07:49:01.406Z","repository":{"id":254899215,"uuid":"828028839","full_name":"bingus-dev/ilen","owner":"bingus-dev","description":"Return index of the last item in table or string, rather than it's length","archived":false,"fork":false,"pushed_at":"2024-12-09T20:12:39.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T15:26:07.778Z","etag":null,"topics":["python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/bingus-dev.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-07-12T23:36:03.000Z","updated_at":"2024-12-09T20:11:18.000Z","dependencies_parsed_at":"2024-08-26T22:06:10.956Z","dependency_job_id":"35bff7fd-44dd-48a0-8402-2cee2725ed52","html_url":"https://github.com/bingus-dev/ilen","commit_stats":null,"previous_names":["btd2010/slen","bizrd/slen","sirkingbinx/slen","goovlevr/slen","ja1va-dev/slen","naviy2000/ilen","foresst2000/ilen","keirdo/ilen","oculidev/ilen","drumkitgorilla/ilen","geopcvr/ilen","kinnyugen/ilen","binguszingus/ilen","jamboington-the-18th/ilen","jambo-posready-embedded-7/ilen","jamboington/ilen","xzcowman/ilen","sirkingbinx/ilen","oatsalmon/ilen","bingus-dev/ilen"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingus-dev%2Filen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingus-dev%2Filen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingus-dev%2Filen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingus-dev%2Filen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bingus-dev","download_url":"https://codeload.github.com/bingus-dev/ilen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244574774,"owners_count":20474818,"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":["python","python3"],"created_at":"2025-03-20T07:49:00.808Z","updated_at":"2025-03-20T07:49:01.396Z","avatar_url":"https://github.com/bingus-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ilen (index-len)\r\nThis is a very basic Python module that checks for length of strings and lists like ``len()``, however, it returns the **index of the last item**, rather than the length of the whole table.\r\n\r\n## Usage Example\r\n```py\r\nfrom ilen import ilen\r\n\r\n# Get the last item in the table\r\ntable_1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 01, 11]\r\ntable_1_last_item = ilen(table_1) # 11\r\n\r\nstring_1 = \"1 2 3 4 5 6 7 8 9 01 11\"\r\nstring_1_last_char = ilen(string_1) # 1\r\n\r\nprint(str(table_1_last_item) + string_1_last_char) # 111\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbingus-dev%2Filen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbingus-dev%2Filen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbingus-dev%2Filen/lists"}