Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add first and first_mut methods#507

Merged
jturner314 merged 1 commit intorust-ndarray:masterrust-ndarray/ndarray:masterfrom
jturner314:first-elemjturner314/ndarray:first-elemCopy head branch name to clipboard
Oct 25, 2018
Merged

Add first and first_mut methods#507
jturner314 merged 1 commit intorust-ndarray:masterrust-ndarray/ndarray:masterfrom
jturner314:first-elemjturner314/ndarray:first-elemCopy head branch name to clipboard

Conversation

@jturner314
Copy link
Member

These are useful for getting an initial value when iterating over an array (e.g. when calculating the minimum element with fold).

Their signatures match the .first() and .first_mut() methods on slices.

@jturner314 jturner314 mentioned this pull request Oct 24, 2018
These are useful for getting an initial value when iterating over an
array (e.g. when calculating the minimum element with `fold`).
@jturner314 jturner314 merged commit 9820166 into rust-ndarray:master Oct 25, 2018
@jturner314 jturner314 deleted the first-elem branch October 25, 2018 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.