-
Notifications
You must be signed in to change notification settings - Fork 546
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
start:end:step
#764
Comments
It's awkward that there is a slice syntax Or use a[start:end by step] = value
for i <- start:end by step {
...
}
for i := range start:end by step {
...
} |
julia & matlab:
|
type Matrix[T Numeric] struct ...
func (m *Matrix[T]) [] (i, j int) T { // getter: x = m[i, j] translates to x = m.[](i, j)
}
func (m *Matrix[T]) []= (i, j int, x T) { // setter: m[i, j] = x translates to m.[]=(i, j, x)
} From https://medium.com/@rhadar/a-data-scientists-take-on-go-ed408c00ac45, golang/go#41129 |
Only implement for range in milestone v1.1 |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: