General

Profile

kyanagi (Kouhei Yanagita)

  • Login: kyanagi
  • Registered on: 11/15/2009
  • Last connection: 09/20/2021

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 3 18 21

Activity

09/22/2021

12:51 AM Ruby master Feature #18181: Introduce Enumerable#min_with_value, max_with_value, and minmax_with_value
Description about `#min_with_value(n)` added. It corresponds to `#min(n)`. kyanagi (Kouhei Yanagita)

09/21/2021

09:01 AM Ruby master Feature #18181: Introduce Enumerable#min_with_value, max_with_value, and minmax_with_value
I added an example code using `#min_with_value`. kyanagi (Kouhei Yanagita)
08:52 AM Ruby master Feature #18181: Introduce Enumerable#min_with_value, max_with_value, and minmax_with_value
`enum.group_by { ... }` holds all of the elements of enum,
so it consumes a lot of memory and is very slow if enum i...
kyanagi (Kouhei Yanagita)

09/20/2021

03:25 PM Ruby master Feature #18181 (Open): Introduce Enumerable#min_with_value, max_with_value, and minmax_with_value
PR is https://github.com/ruby/ruby/pull/4874
I propose `Enumerable#min_with_value`, `max_with_value` and `minmax_w...
kyanagi (Kouhei Yanagita)

04/10/2020

04:06 PM Ruby master Feature #16428: Add Array#uniq?, Enumerable#uniq?
In my cases, I (server side) only had to check duplication because a client also have validations.
Legal users can't...
kyanagi (Kouhei Yanagita)
02:25 PM Ruby master Feature #16428: Add Array#uniq?, Enumerable#uniq?
I was developing mobile games, and I met these situations:
A card deck can't have duplicate characters.
i.e. `dec...
kyanagi (Kouhei Yanagita)

12/18/2019

06:50 AM Ruby master Feature #16428: Add Array#uniq?, Enumerable#uniq?
Following a suggestion of `Enumerable#uniq?`, I also added `Enumerable#uniq?` to my patch.
`Array#uniq?` is left bec...
kyanagi (Kouhei Yanagita)

12/17/2019

01:24 PM Ruby master Feature #16428 (Feedback): Add Array#uniq?, Enumerable#uniq?
I propose Array#uniq?.
I often need to check if an array have duplicate elements.
This method returns true if n...
kyanagi (Kouhei Yanagita)

10/25/2017

05:29 AM Ruby master Feature #14052 (Open): Introduce SecureRandom.with_chars
ref. https://bugs.ruby-lang.org/issues/10849
This request renames SecureRandom.choose to .with_chars and makes it ...
kyanagi (Kouhei Yanagita)

11/15/2016

01:41 PM Ruby master Bug #12920: Strange NoMethodError in Time.now
This problem happens with Ruby 2.3.2.
~~~
% cat a.rb
Fixnum.prepend(Module.new)
Module.new do
refine Fixnum ...
kyanagi (Kouhei Yanagita)

Also available in: Atom