WrkstrmMain provides extensions to the Swift Main library, adding functionalities for string manipulation, collection processing, and more. Tested via GitHub Actions.
- 🌐 Extended Swift Library: Enhancements for string manipulation and collection processing.
- 🚀 Performance Oriented: Optimized for efficiency and speed.
- 🔧 Versatile and Flexible: Adaptable to a wide range of development needs.
- macOS
- Linux
To integrate WrkstrmMain into your project, follow these steps:
Add WrkstrmMain as a dependency in your Package.swift file:
dependencies: [
.package(url: "https://github.com/wrkstrm/WrkstrmMain.git", .upToNextMajor(from: "0.0.0"))
]Include WrkstrmMain in your target dependencies:
targets: [
.target(name: "YourTarget", dependencies: ["WrkstrmMain"]),
]Import WrkstrmMain and utilize its extensions:
-
📥 Import the Library:
import WrkstrmMain
-
🔨 Utilize Extensions: Leverage various extensions for enhanced functionality:
Example Extensions:
camelCaseToKebabCase(): Convert a camelCase string to kebab-case.containsUniqueChars(): Check if a string contains all unique characters.isPermutation(_:): Check if a string is a permutation of another string.
search(key:): Binary search in a collection.mergeSort(): Perform a merge sort on a collection.
flattened(): Unwrap and flatten any value, potentially tonil.
Optional<T>whereT: Comparable & Equatable: Adds comparison functionality to Optionals.
Customize and extend WrkstrmMain to suit your project's specific needs.
🌟 Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📄 Distributed under the MIT License. See LICENSE for more information.
🔗 Project Link: https://github.com/wrkstrm/WrkstrmMain
- Developed by github.com/@rismay