Skip to content
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

feature request: add indexes for array elements #88

Open
JFixby opened this issue Jul 20, 2018 · 0 comments
Open

feature request: add indexes for array elements #88

JFixby opened this issue Jul 20, 2018 · 0 comments

Comments

@JFixby
Copy link

JFixby commented Jul 20, 2018

Example array: [5]int{14234, 42, -1, 1000, 5})

Current output:

([5]int) (len=5 cap=5) {
 (int) 14234,
 (int) 42,
 (int) -1,
 (int) 1000,
 (int) 5
}

Suggested output with index aligments:

<[1000]int> len=1000 cap=2000 {
        (0) <int> 14234
        (1) <int> 42
        (2) <int> -1
        ...           
      (998) <int> 1000
      (999) <int> 5
}

or

<[1000]int> len=1000 cap=2000 {
  (0) <int> 14234
  (1) <int> 42
  (2) <int> -1
        ...           
(998) <int> 1000
(999) <int> 5
}

Or smth like this. Anything that helps to see element index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant