https://github.com/tkf/baselet.jl
Base API optimized for tuples
https://github.com/tkf/baselet.jl
Last synced: 7 months ago
JSON representation
Base API optimized for tuples
- Host: GitHub
- URL: https://github.com/tkf/baselet.jl
- Owner: tkf
- License: mit
- Created: 2020-02-20T03:55:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-09T22:53:55.000Z (over 5 years ago)
- Last Synced: 2025-06-15T18:26:46.614Z (7 months ago)
- Language: Julia
- Homepage:
- Size: 31.3 KB
- Stars: 19
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Baselet: `Base` API optimized for tuples
[](https://github.com/tkf/Baselet.jl/actions?query=workflow%3A%22Run+tests%22)
[](https://github.com/tkf/Aqua.jl)
## API
* `Baselet.$f` provides a possibly-optimized version of `$f` exported
from `Base` (e.g., `Baselet.sort(::Tuple)`).
* `Baselet.Specialized.$f` provides a function `$f` with a subset of
API from `Base.$f` that is _guaranteed_ to have optimized
specializations (e.g., `Baselet.Specialized.sort(::Tuple)`).
* `Baselet.$f` fallbacks to `Base.$f` if associated
`Baselet.Specialized.$f` is not found. For example,
`Baselet.sort(::Vector)` just calls `Base.sort(::Vector)`.
The list of supported functions can be found by typing
`Baselet.Specialized.` + TAB in the REPL:
```julia
julia> using Baselet
julia> Baselet.Specialized.
accumulate cumprod findall flatten isdisjoint sort
all cumsum findfirst foreach issubset symdiff
any enumerate findlast getindex maximum union
argmax extrema findmax in minimum unique
argmin filter findmin intersect setdiff zip
```