-
-
Notifications
You must be signed in to change notification settings - Fork 907
Closed
Labels
AcceptedRFC feature request which has been accepted.RFC feature request which has been accepted.FeatureIssue or pull request for adding a new feature.Issue or pull request for adding a new feature.Good First IssueA good first issue for new contributors!A good first issue for new contributors!Help WantedExtra attention is needed.Extra attention is needed.JavaScriptIssue involves or relates to JavaScript.Issue involves or relates to JavaScript.RFCRequest for comments. Feature requests and proposed changes.Request for comments. Feature requests and proposed changes.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.May require some initial design or R&D, but should be straightforward to resolve and/or implement.priority: NormalNormal priority concern or feature request.Normal priority concern or feature request.
Description
Description
This RFC proposes adding support for an at
method to @stdlib/array/fixed-endian-factory
.
This method is the equivalent of the TypedArray.prototype.at
method, but for fixed-endian typed arrays.
When adding support, the following tasks should be completed:
- The
./lib/main.js
file should be updated with the added method. - A new test file should be created which includes unit tests testing against expected behavior.
- Two benchmark files should be added: one measuring baseline performance and another measuring performance as the array length increases.
- The README should be updated to include documentation for the added method.
To provide a concrete example of what a PR adding the desired method should contain, see 956a462, which is a commit adding forEach
support. This should provide an idea of what is expected.
For an example of specialized typed arrays having customized methods, see
While the method proposed in this RFC will likely not match the implementations found in the above packages, those packages should provide a conceptual idea of what is desired. Do not simply copy-paste the code found in those packages.
Notes
- If you are interested in contributing a PR which addresses this RFC and are a first-time contributor or not yet familiar with our project conventions, please do not submit LLM-generated code. Please consult our contributing guidelines and the associated development guide. Failure to respect project conventions will result in your PR being rejected without review. Thank you for understanding!
Checklist
- I have read and understood the Code of Conduct.
- Searched for existing issues and pull requests.
- The issue name begins with
[RFC]:
.
Metadata
Metadata
Assignees
Labels
AcceptedRFC feature request which has been accepted.RFC feature request which has been accepted.FeatureIssue or pull request for adding a new feature.Issue or pull request for adding a new feature.Good First IssueA good first issue for new contributors!A good first issue for new contributors!Help WantedExtra attention is needed.Extra attention is needed.JavaScriptIssue involves or relates to JavaScript.Issue involves or relates to JavaScript.RFCRequest for comments. Feature requests and proposed changes.Request for comments. Feature requests and proposed changes.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.May require some initial design or R&D, but should be straightforward to resolve and/or implement.priority: NormalNormal priority concern or feature request.Normal priority concern or feature request.