Hi folks,
I just had a couple questions about ranges that maybe someone can answer.
1) Why are there so many Range types? There is a UnitRange (start, stop),
a StepRange (start, step, stop), and a FloatRange(start, step, length,
divisor), but I don't really understand why you can't just use the
StepRange for everything. Maybe I'm just missing some obvious use cases,
but this seems to lead to inconsistent or confusing behaviour like the 1 in
my second question.
2) `findin` seems to have inconsistent behaviour for ranges depending on
types in the ranges. `findin(::UnitRange, ::UnitRange)` returns another
UnitRange, but `findin(::StepRange, ::StepRange)` returns an array of the
indices. Is there some reason that these shouldn't be consistent?
Ex:
```
julia> findin(1:10, 2:5)
2:5
julia> findin(1:1:10, 2:2:5)
2-element Array{Int64,1}:
2
4
julia> r1 = DateTime(now())-Dates.Day(60):DateTime(now())
2015-08-22T19:07:47:1 day:2015-10-21T19:07:47
julia> r2 = r1[1:20]
2015-08-22T19:07:47:1 day:2015-09-10T19:07:47
julia> findin(r1, r2)
20-element Array{Int64,1}:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
```