Andy Ferris

Results 373 comments of Andy Ferris

Hi @Moelf, The `Dict` constructor expects to get an iterable of `Pair`s - or other iterable things where the first element is the key and the second is the value...

Also, we should probably think about the Tables.jl interface at some point...

Unfortunately a specialisation to insert `pairs` would break `Dict(copy(pairs(dictionary)))` where you’d expect the `copy` to have no effect on the output. It’s also hard to add methods for all `AbstractDict`,...

> Oh, in the case of `Dict(copy(pairs(d)))`, it means we should have specialized copy too then. Yes. But we can't specialize a `Dict` constructor on this - all it sees...

@tkf thanks - with the ordering changes in #13 I'm thinking we can do things like ensure tokens have a total ordering and that you can find the `first` and...

Yes. I will need approximate token bisection for `searchsortedxxx` functions when they land, so no worries. To be clear, yes we can define `halve` for any concrete type, I was...

Yep - we got that covered! What you are looking for is called `ArrayDictionary`. There is also `ArrayIndices` for `LittleSet`. At some point we should make some more-structured documentation, to...

Thanks @malacroi. I was trying to keep the examples as simple as possible, but yes it's probably a better idea to incorporate the first snippet into the README and redo...

Yes, the more places that support `sizehint` the better. I think a 3% difference for clear, concise idiomatic code is worthwhile. With a copy-and-update and generator versions we actually highlight...

Right - this does seem like something we can and should fix, using the same dispatch pattern as `Base` does.