Nick Markwell

  • Email:
  • Registered on: 07/21/2010
  • Last connection: 10/28/2012

Activity

Reported issues: 2

10/28/2012

11:25 AM ruby-trunk Feature #6727: Add Array#rest (with implementation)
Sorry that I forgot to check this again before.
I've done a bit of thinking and poking around since I ran across...

07/14/2012

12:34 AM ruby-trunk Feature #6727: Add Array#rest (with implementation)
> @duckinator: Could you show us a real use case for Array#rest ?
I'll add another update in a bit with examples.
...

07/13/2012

02:50 PM ruby-trunk Feature #3591: Adding Numeric#divisor? (Have working implementation)
Regarding Float, BigDecimal, Complex, and Rational: Agreed.
Regarding `42 % 5 == 0`, I somewhat agree: it can be a...
02:33 PM ruby-trunk Feature #6727: Add Array#rest (with implementation)
And I just double-checked if those behave the same, and they do *not*:
Incorrect:
>> [].drop(1)
=> []
>> first, *r...
02:22 PM ruby-trunk Feature #6727: Add Array#rest (with implementation)
> rest = arr.drop(1)
> _, *rest = arr
Those two methods you mentioned "work," but the first isn't very clear o...
01:25 PM ruby-trunk Feature #6727 (Assigned): Add Array#rest (with implementation)
=begin
I run into many instances where I end up using (({arr[1..-1]})), so I decided to add (({arr.rest})) to make t...
12:31 PM ruby-trunk Feature #3591: Adding Numeric#divisor? (Have working implementation)
=begin
I ran across this again, and decided to just implement it as Numeric#divisible_by?, since that makes the most ...

07/22/2010

05:54 AM ruby-trunk Feature #3591: Adding Numeric#divisor? (Have working implementation)
=begin
Toss out some more ideas/opinions, I'll make a patch for the one that the most people agree with :)
=end

07/21/2010

04:35 PM ruby-trunk Feature #3591: Adding Numeric#divisor? (Have working implementation)
=begin
I agree, Numeric#multiple? seems more appropriate.
Different patch providing Numeric#multiple? with the sam...
03:28 PM ruby-trunk Feature #3591 (Assigned): Adding Numeric#divisor? (Have working implementation)
=begin
On the 'duckinator' branch of my fork of ruby on github, I have added Numeric#divisor?:
num.divisor?(oth...

Also available in: Atom