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

Slider should default to median(range)? #9

Closed
stevengj opened this issue Aug 21, 2014 · 4 comments
Closed

Slider should default to median(range)? #9

stevengj opened this issue Aug 21, 2014 · 4 comments

Comments

@stevengj
Copy link
Contributor

I find that first(range) is typically not the default that I want.

@shashi shashi closed this as completed in 8214d37 Aug 22, 2014
@shashi
Copy link
Member

shashi commented Aug 22, 2014

Should we add median(::Range) to Base?

@stevengj
Copy link
Contributor Author

Probably would be a good addition. I didn't realize it was missing.

@stevengj
Copy link
Contributor Author

Seems like you could just do r[(1+lengh(r))>>1] or similar, since ranges are sorted.

@shashi
Copy link
Member

shashi commented Aug 22, 2014

Ah, cool I thought something like that would evaluate the range. It's not. Done 66e6ab6

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

2 participants