Marc-Andre Lafortune

Projects

Activity

Reported issues: 166

03/27/2015

10:32 PM Ruby trunk Feature #11007: Prime.each.with_index should accept offset
Looks good, thanks for this.
Only thing is that it would be best to avoid capturing the block (with `&blk`) if it'...

03/05/2015

11:45 PM Ruby trunk Revision 49866: * lib/matrix.rb: Add Vector#round. Patch by Jordan Stephens.
[Fixes GH-802]

02/24/2015

06:09 PM Ruby trunk Revision 49728: * lib/uri: [doc] Update common.rb [ci-skip] [fixes GH-838]

02/23/2015

04:38 PM Ruby trunk Bug #10855: [PATCH] Matrix#inverse returns matrix of integers whenever possible
TBH, I can't think of any legitimate use of `Matrix#/` with integer division. Anyone?
I never really thought of t...

02/22/2015

08:22 PM Ruby trunk Revision 49691: * lib/matrix.rb: [Doc] Fix Vector multiplication documentation [ci-skip]
[Fixes GH-837]
03:09 PM Ruby trunk Feature #10880: Subclassing Array from Enumerator
> I use with_index and with_object frequently.
Any reason why you wouldn't simply use `each_with_index` and `each_...
02:24 AM Ruby trunk Feature #10880: Subclassing Array from Enumerator
> they should be very close
They *are* very close:
Enumerator.instance_methods - Array.instance_methods
...

02/15/2015

08:15 PM Ruby trunk Bug #10855: [PATCH] Matrix#inverse returns matrix of integers whenever possible
Interesting.
I'm thinking it might be best to do the conversion even if some entries are not integral. Why do you ...

02/12/2015

10:18 PM Ruby trunk Misc #10754 (Closed): Tiny optimisation of Set#include?

02/10/2015

03:25 PM Ruby trunk Bug #10837: spatting a single element array produces an array instead of a single value for retur...
bug hit wrote:
> `b = *[a]` is `b = [a]` why?
> `(next|return) *[a]` is `(next|return) [a]` why?
I agree, this c...

Also available in: Atom