General

Profile

radan (Radan Skorić)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

01/28/2015

07:48 AM Ruby Feature #10726: [PATCH 4/4] * New methods: Set#power
It is a well defined mathematical operation but it seems to me it has a very narrow usage.
IMHO, maybe such functionality would fit better in a separate gem. There are other well defined mathematical set operations and if they all en...
radan (Radan Skorić)

01/25/2015

08:55 PM Ruby Feature #10730: Implement Array#bsearch_index
I rebased on the latest trunk and resolved conflicts with the updates to bsearch implementation.
If there's anything I can do to improve this proposal, I'll be happy to do it, just let me know, thanks.
radan (Radan Skorić)

01/18/2015

02:46 PM Ruby Feature #10481: Add "if" and "unless" clauses to rescue statements
Alex Boyd wrote:
> In addition to the above, here's another one: a block of code that could fail for reasons beyond your control, where you want to catch errors in a production environment and handle them as gracefully as possible while...
radan (Radan Skorić)

01/12/2015

01:56 PM Ruby Feature #10730: Implement Array#bsearch_index
>
> ...
Let me then tell you about my use case. There is a sparse array of dates and I want to slice out a part of it that falls within minimum and maximum date. It is then later used to retrieve same values associated with those dates...
radan (Radan Skorić)
09:53 AM Ruby Feature #10730: Implement Array#bsearch_index
Yusuke Endoh wrote:
> You may want to use `Range#bsearch` for the case.
> ...
Yusuke, thanks, that is a very clever approach.
But if we do that then we are just one small step away from having `Array#bsearch` based on `Range#bsearc...
radan (Radan Skorić)

01/11/2015

10:05 PM Ruby Feature #10730 (Closed): Implement Array#bsearch_index

We currently have Array#bsearch but no Array#bsearch_index and to me it seems that violates the principle of least surprise, especially when we consider the other combinations of existing methods that find either an element or it’s ind...
radan (Radan Skorić)

Also available in: Atom