-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add idxmin() and idxmax() #12976
Add idxmin() and idxmax() #12976
Conversation
so that MultipartData objects are easily accessible.
@@ -390,6 +390,7 @@ proc `[]=`*(p: var MultipartData, name: string, | |||
|
|||
proc format(p: MultipartData): tuple[contentType, body: string] = | |||
if p == nil or p.content.len == 0: | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated change please remove from this PR
The aim is to keep system.nim lean. |
This should be moved to |
Yep, return type is incorrect. Plus tests are required. |
this doesn't work for arrays with non-zero starting index. |
I think this is too trivial and not useful enough to jump into stdlib. It would need a |
These are two procedures that return the index of the corresponding minimum and maximum value