-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 0.0.5 #8
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> Note that this update introduces breaking changes. Implement a `Functions` helper class for common procedures such as - `invert` - `is_even` - `is_odd` - `sign` The overload in the `Iter` constructor was removed in favor of a static `Iter.range` method to enforce separation of concerns more strictly. Additional minor changes were made to pretty much all doc strings to reflect the recent changes that are to be consolidated for more information. In brief, - the `chunk_by` method now also provides `eject` as an optional argument - the `concat` method was renamed to `union` - `iterable` and `iter` keyword arguments were renamed to `iter_` - the method signature of the `range` method has changed and added support for decrements The following methods are new: - `duplicates` - `flatten` - `linspace` - `transpose`
* remove redundat lines from project template * update classifiers * fix exception message (wrong package name)
* remove the concatenation from the implementation since this can also be done with a prepended flatten method, and use the built-in set method for performing the union of two hashable objects
* doc strings should start with the 'Test' verb if a function returns a boolean * implements is_subset and is_superset based on Python's `set` collection
* add doc strings to all methods * improve implementation of the sign method
* use "T | U" instead of "Union[T, U]" in method signatures * define Self as explicit type for "self", this type hint is only available in Python 3.11 which is why we also import typing_extensions which is a new external dependency * same goes for the "Annotated" type hint (Python 3.9+)
* implement combinations, combinations_with_replacement and permutations based on the itertools library * return self in cartesian method instead of creating a new object
* implement open method for File.TEXT, File.CSV and File.JSON (missing case: File.IMG) * change implementation of __str__ and __repr__
* implement save method with the image case as TODO * it's more pythonic to derive the file extension from the provided file name rather than overloading the method with an file enum
* return a list of all indices that return `True` for `fun`, and not just the first one * drop the default parameter and return an empty list if `fun` always results in `False` for all elements in the image
* add the solution to a modified leet code challenge (see also: https://leetcode.com/problems/two-sum) * add a list of contributors and license information
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR also closes issue #12.
open
functionsave
methodrandint
functioncartesian
methodpermutations
methodcombinations
methodcombinations_with_replacement
methodintersects
methoddifference
methodsymmetric_difference
methodis_disjoint
methodis_subset
methodis_superset
methodto_list
methodis_prime
miller_rabin
__next__
and__iter__
__eq__
and__ne__
union
method