1364件ヒット
[1301-1364件を表示]
(0.022秒)
モジュール
- Enumerable (654)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - Enumerator (12)
- HISTORY (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Ruby用語集 (12)
- all? (45)
- any? (62)
- collect (48)
-
collect
_ concat (24) - compact (4)
- count (72)
- drop (24)
-
drop
_ while (48) -
enum
_ for (24) - filter (14)
- first (24)
-
flat
_ map (24) - grep (24)
- map (48)
- max (84)
-
max
_ by (48) - min (84)
-
min
_ by (48) - minmax (24)
- none? (42)
- one? (42)
- reject (48)
-
ruby 1
. 6 feature (12) -
ruby 1
. 9 feature (12) - select (24)
- set (9)
- sort (24)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (24) - sum (42)
- take (24)
-
take
_ while (48) -
to
_ enum (24) - uniq (24)
検索結果
先頭5件
-
NEWS for Ruby 2
. 1 . 0 (30.0) -
NEWS for Ruby 2.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...新
* Array
* 追加: Array#to_h キーと値のペアの配列をハッシュに変換します。
* Binding
* 追加: Binding#local_variable_get
* 追加: Binding#local_variable_set
* 追加: Binding#local_variable_defined?
* Enumerable
* 追加: Enumerable#to_h キー......ときは string-scrub gem を使います。
* Symbol
* 全てのシンボルは freeze されるようになりました
* pack/unpack (Array/String)
* プラットフォームが対応していれば Q! と q! は long long 型を表します
* toplevel
* main.using はもは... -
set (18.0)
-
集合を表す Set クラスと、取り出し順序を保証した SortedSet クラスを提供 します。
...、取り出し順序を保証した SortedSet クラスを提供
します。
集合とは重複のないオブジェクトの集まりです。
Array の持つ演算機能と Hash の高速な検索機能を合わせ持ちます。
Set および SortedSet は内部記憶として Hash を使う......、集合要素はソートされた順序で取り出されます。
また、set ライブラリを require すると Enumerable モジュールが
拡張され、Enumerable#to_set の形で集合オブジェクトを生成できる
ようになります。
=== 注意事項
集合オブジェ......集合を表す Set クラスを提供します。
集合とは重複のないオブジェクトの集まりです。
Array の持つ演算機能と Hash の高速な検索機能を合わせ持ちます。
Set は内部記憶として Hash を使うため、集合要素の等価性は
Object#eql?......、集合要素を取り出す際の順序は保証されません。
また、set ライブラリを require すると Enumerable モジュールが
拡張され、Enumerable#to_set の形で集合オブジェクトを生成できる
ようになります。
=== 注意事項
集合オブジェ... -
Object
# enum _ for(method = :each , *args) -> Enumerator (12.0) -
Enumerator.new(self, method, *args) を返します。
...= enum.map{|b| '%02x' % b }) #=> ["78", "79", "7a"]
# protects an array from being modified
a = [1, 2, 3]
p(a.to_enum) #=> #<Enumerator: [1, 2, 3]:each>
//}
//emlist[例(ブロックを指定する場合)][ruby]{
module Enumerable
def repeat(n)
raise ArgumentError, "#{n} is negative!" if n... -
Object
# enum _ for(method = :each , *args) {|*args| . . . } -> Enumerator (12.0) -
Enumerator.new(self, method, *args) を返します。
...= enum.map{|b| '%02x' % b }) #=> ["78", "79", "7a"]
# protects an array from being modified
a = [1, 2, 3]
p(a.to_enum) #=> #<Enumerator: [1, 2, 3]:each>
//}
//emlist[例(ブロックを指定する場合)][ruby]{
module Enumerable
def repeat(n)
raise ArgumentError, "#{n} is negative!" if n... -
Object
# to _ enum(method = :each , *args) -> Enumerator (12.0) -
Enumerator.new(self, method, *args) を返します。
...= enum.map{|b| '%02x' % b }) #=> ["78", "79", "7a"]
# protects an array from being modified
a = [1, 2, 3]
p(a.to_enum) #=> #<Enumerator: [1, 2, 3]:each>
//}
//emlist[例(ブロックを指定する場合)][ruby]{
module Enumerable
def repeat(n)
raise ArgumentError, "#{n} is negative!" if n... -
Object
# to _ enum(method = :each , *args) {|*args| . . . } -> Enumerator (12.0) -
Enumerator.new(self, method, *args) を返します。
...= enum.map{|b| '%02x' % b }) #=> ["78", "79", "7a"]
# protects an array from being modified
a = [1, 2, 3]
p(a.to_enum) #=> #<Enumerator: [1, 2, 3]:each>
//}
//emlist[例(ブロックを指定する場合)][ruby]{
module Enumerable
def repeat(n)
raise ArgumentError, "#{n} is negative!" if n...