{"id":25706704,"url":"https://github.com/init-io/thirdbrac","last_synced_at":"2025-10-25T02:47:44.217Z","repository":{"id":278329119,"uuid":"935263585","full_name":"Init-io/thirdBrac","owner":"Init-io","description":"**thirdBrac** is a Python-style list library for Java, bringing the simplicity of Python’s `list` to Java. It supports all major list operations, slicing, and functional programming, making Java list handling intuitive and efficient. 🚀","archived":false,"fork":false,"pushed_at":"2025-02-19T07:10:38.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T07:32:57.060Z","etag":null,"topics":["java","javalib","javalibrary","javalistsort","list","listing","programming","python"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Init-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-02-19T06:58:44.000Z","updated_at":"2025-02-19T07:10:41.000Z","dependencies_parsed_at":"2025-02-19T07:33:02.556Z","dependency_job_id":"4c9682fa-1b55-4df8-9e4a-40a7d75b7ec2","html_url":"https://github.com/Init-io/thirdBrac","commit_stats":null,"previous_names":["init-io/thirdbrac"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Init-io%2FthirdBrac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Init-io%2FthirdBrac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Init-io%2FthirdBrac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Init-io%2FthirdBrac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Init-io","download_url":"https://codeload.github.com/Init-io/thirdBrac/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240627091,"owners_count":19831592,"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":["java","javalib","javalibrary","javalistsort","list","listing","programming","python"],"created_at":"2025-02-25T07:45:43.078Z","updated_at":"2025-10-25T02:47:39.199Z","avatar_url":"https://github.com/Init-io.png","language":"Java","readme":"# **🔥 thirdBrac - Pythonic Lists in Java (v1.0.0) 🔥**  \n![Maven Central](https://img.shields.io/maven-central/v/io.github.init-io/thirdBrac.svg?label=Maven%20Central)\n![GitHub Release](https://img.shields.io/github/v/release/init-io/thirdBrac?label=release)\n[![License](https://img.shields.io/github/license/init-io/thirdBrac)](LICENSE)\n![downloads](https://img.shields.io/badge/downloads-1k%2Fmonth-brightgreen)\n\n**🚀 A fully Python-style list implementation for Java!**   \nNow you can use lists like a **Python pro in Java!** 🎉  \n\n---\n## **📌 Features**\n✅ **Simple \u0026 Pythonic:** Works just like Python’s `list`  \n✅ **Fully Featured:** Supports all major list operations  \n✅ **Iterable \u0026 Functional:** Supports `for-each`, `map`, `filter`, `reduce`  \n✅ **Super Fast \u0026 Optimized!**  \n\n---\n## **📌 Installation**\nJust download `thirdBrac.java` and add it to your project.  \n\n---\n## **📌 Quick Example**\n```java\nimport io.github.initio.thirdBrac.thirdBrac;\n\npublic class Main {\n    public static void main(String[] args) {\n        thirdBrac\u003cInteger\u003e myList = thirdBrac.list(1, 2, 3, 4, 5);\n        myList.append(6);\n        myList.insert(2, 99);\n        myList.extend(Arrays.asList(7, 8));\n\n        System.out.println(myList); // [1, 2, 99, 3, 4, 5, 6, 7, 8]\n    }\n}\n```\n---\n\n## **📌 Complete List of Methods in `thirdBrac`**\n---\n### **1️⃣ Creation Methods**\n| **Method** | **Description** | **Usage Example** |\n|-----------|--------------|-----------------|\n| `thirdBrac.list(T... elements)` | Creates a `thirdBrac` list | `thirdBrac\u003cInteger\u003e myList = thirdBrac.list(1, 2, 3, 4, 5);` |\n| `thirdBrac.of(T... elements)` | Alternate way to create a `thirdBrac` list | `thirdBrac\u003cInteger\u003e myList = thirdBrac.of(1, 2, 3);` |\n\n---\n### **2️⃣ Basic Operations**\n| **Method** | **Description** | **Usage Example** |\n|-----------|--------------|-----------------|\n| `append(T value)` | Adds an element at the end | `myList.append(6);` |\n| `insert(int index, T value)` | Inserts an element at a specific index | `myList.insert(2, 99);` |\n| `extend(List\u003cT\u003e values)` | Extends list by adding multiple elements | `myList.extend(Arrays.asList(7, 8));` |\n| `remove(T value)` | Removes the first occurrence of the value | `myList.remove(3);` |\n| `pop()` | Removes and returns the last element | `T popped = myList.pop();` |\n| `pop(int index)` | Removes and returns element at index | `T popped = myList.pop(2);` |\n| `clear()` | Clears the entire list | `myList.clear();` |\n| `set(int index, T value)` | Replaces an element at a given index | `myList.set(1, 100);` |\n| `get(int index)` | Gets an element at a given index | `T first = myList.get(0);` |\n\n---\n### **3️⃣ Indexing \u0026 Slicing**\n| **Method** | **Description** | **Usage Example** |\n|-----------|--------------|-----------------|\n| `first()` | Returns the first element | `T first = myList.first();` |\n| `last()` | Returns the last element | `T last = myList.last();` |\n| `slice(int start, int end)` | Returns a sublist (Python slicing) | `thirdBrac\u003cInteger\u003e subList = myList.slice(1, 4);` |\n| `reverseSlice()` | Returns a reversed copy of the list | `thirdBrac\u003cInteger\u003e reversedList = myList.reverseSlice();` |\n\n---\n### **4️⃣ Searching \u0026 Counting**\n| **Method** | **Description** | **Usage Example** |\n|-----------|--------------|-----------------|\n| `index(T value)` | Returns index of the first occurrence | `int idx = myList.index(100);` |\n| `count(T value)` | Counts occurrences of a value | `int occurrences = myList.count(2);` |\n| `contains(T value)` | Checks if the list contains a value | `boolean isPresent = myList.contains(5);` |\n\n---\n### **5️⃣ Sorting \u0026 Reversing**\n| **Method** | **Description** | **Usage Example** |\n|-----------|--------------|-----------------|\n| `sort()` | Sorts list in ascending order | `myList.sort();` |\n| `sortDescending()` | Sorts list in descending order | `myList.sortDescending();` |\n| `reverse()` | Reverses the list | `myList.reverse();` |\n\n---\n### **6️⃣ Copying \u0026 Merging**\n| **Method** | **Description** | **Usage Example** |\n|-----------|--------------|-----------------|\n| `copy()` | Returns a copy of the list | `thirdBrac\u003cInteger\u003e copyList = myList.copy();` |\n| `merge(List\u003cT\u003e otherList)` | Merges two lists | `thirdBrac\u003cInteger\u003e merged = myList.merge(Arrays.asList(10, 11));` |\n\n---\n### **7️⃣ Functional Programming**\n| **Method** | **Description** | **Usage Example** |\n|-----------|--------------|-----------------|\n| `map(Function\u003cT, R\u003e func)` | Applies a function to each element | `thirdBrac\u003cInteger\u003e squared = myList.map(x -\u003e x * x);` |\n| `filter(Predicate\u003cT\u003e predicate)` | Filters elements based on condition | `thirdBrac\u003cInteger\u003e evens = myList.filter(x -\u003e x % 2 == 0);` |\n| `reduce(BinaryOperator\u003cT\u003e reducer)` | Aggregates values | `Optional\u003cInteger\u003e sum = myList.reduce(Integer::sum);` |\n\n---\n### **8️⃣ List Comprehensions (Python-Style)**\n| **Method** | **Description** | **Usage Example** |\n|-----------|--------------|-----------------|\n| `comprehension(int start, int end, IntFunction\u003cInteger\u003e func)` | Generates a list using a function | `thirdBrac\u003cInteger\u003e squares = thirdBrac.comprehension(0, 5, x -\u003e x * x);` |\n\n---\n### **9️⃣ Conversion**\n| **Method** | **Description** | **Usage Example** |\n|-----------|--------------|-----------------|\n| `toList()` | Converts `thirdBrac` to a Java `List` | `List\u003cInteger\u003e normalList = myList.toList();` |\n\n---\n### **🔄 Iteration (For-each Loop Support)**\n```java\nfor (Integer num : myList) {\n    System.out.println(num);\n}\n```\n\n---\n## **📌 FULL USAGE EXAMPLES**\n```java\npublic class Main {\n    public static void main(String[] args) {\n        thirdBrac\u003cInteger\u003e myList = thirdBrac.list(1, 2, 3, 4, 5);\n\n        myList.append(6);\n        myList.insert(2, 99);\n        myList.extend(Arrays.asList(7, 8));\n        myList.remove(3);\n\n        System.out.println(myList); // [1, 2, 99, 4, 5, 6, 7, 8]\n        System.out.println(\"Popped: \" + myList.pop()); // 8\n        System.out.println(myList.slice(1, 4)); // [2, 99, 4]\n        System.out.println(\"First: \" + myList.first()); // 1\n        System.out.println(\"Last: \" + myList.last()); // 7\n        System.out.println(\"Index of 99: \" + myList.index(99)); // 2\n\n        myList.reverse();\n        System.out.println(\"Reversed: \" + myList); // [7, 6, 5, 4, 99, 2, 1]\n\n        thirdBrac\u003cInteger\u003e squares = thirdBrac.comprehension(0, 5, x -\u003e x * x);\n        System.out.println(\"Squares: \" + squares); // [0, 1, 4, 9, 16]\n    }\n}\n```\n\n---\n## **🚀 thirdBrac is the ULTIMATE PYTHONIC LIST LIBRARY FOR JAVA!**  \n🔥 **Just import and code like a Python GOD in Java!** 🔥  \n\n📌 **Version:** `1.0.0`  \n📌 **Author:** *Siam Rayhan*  \n📌 **License:** MIT  \n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finit-io%2Fthirdbrac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finit-io%2Fthirdbrac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finit-io%2Fthirdbrac/lists"}