2559件ヒット
[1-100件を表示]
(0.061秒)
別のキーワード
種類
ライブラリ
- English (36)
- ビルトイン (1197)
- abbrev (12)
- csv (84)
- date (4)
- delegate (12)
- expect (24)
- fileutils (12)
- json (120)
- matrix (84)
- observer (12)
- open3 (12)
- openssl (36)
- optparse (36)
- pathname (12)
- rake (72)
-
rexml
/ document (12) - rubygems (24)
-
rubygems
/ commands / update _ command (12) -
rubygems
/ commands / which _ command (24) -
rubygems
/ dependency _ installer (12) -
rubygems
/ dependency _ list (12) -
rubygems
/ ext / configure _ builder (12) -
rubygems
/ ext / ext _ conf _ builder (12) -
rubygems
/ ext / rake _ builder (12) -
rubygems
/ format (12) -
rubygems
/ old _ format (12) -
rubygems
/ platform (12) -
rubygems
/ requirement (12) -
rubygems
/ security (12) -
rubygems
/ source _ index (24) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ spec _ fetcher (24) -
rubygems
/ specification (168) - scanf (36)
- set (18)
- shell (30)
-
shell
/ command-processor (6) -
shell
/ filter (6) - socket (36)
-
webrick
/ httpserver (12) -
webrick
/ httputils (24)
クラス
- Array (575)
- CSV (48)
-
CSV
:: Row (24) -
CSV
:: Table (12) - Data (3)
- Date (2)
- DateTime (2)
-
Encoding
:: Converter (24) - Enumerator (24)
-
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: Commands :: WhichCommand (24) -
Gem
:: DependencyInstaller (12) -
Gem
:: DependencyList (12) -
Gem
:: Ext :: ConfigureBuilder (12) -
Gem
:: Ext :: ExtConfBuilder (12) -
Gem
:: Ext :: RakeBuilder (12) -
Gem
:: Format (12) -
Gem
:: OldFormat (12) -
Gem
:: Platform (12) -
Gem
:: Requirement (12) -
Gem
:: Security :: Policy (12) -
Gem
:: SourceIndex (24) -
Gem
:: SourceInfoCache (12) -
Gem
:: SpecFetcher (24) -
Gem
:: Specification (168) - Hash (24)
- IO (36)
- IPSocket (12)
-
JSON
:: State (60) - MatchData (62)
- Matrix (60)
- Module (72)
- Object (48)
-
OpenSSL
:: X509 :: ExtensionFactory (36) - OptionParser (36)
- Pathname (12)
-
REXML
:: Element (12) -
Rake
:: Application (24) -
Rake
:: FileList (24) - Random (36)
- Range (12)
- Rational (24)
- Regexp (12)
- Set (24)
- Shell (30)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) -
Socket
:: Option (12) - String (45)
- UDPSocket (12)
- Vector (24)
-
WEBrick
:: HTTPServer :: MountTable (12) -
WEBrick
:: HTTPUtils :: FormData (24)
モジュール
- Enumerable (221)
- FileUtils (24)
- Gem (24)
- JSON (24)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) - Kernel (60)
- Observable (12)
- Open3 (12)
- Warning (1)
オブジェクト
- main (20)
キーワード
-
$ INPUT _ RECORD _ SEPARATOR (12) -
$ OUTPUT _ FIELD _ SEPARATOR (12) -
$ RS (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - ArgumentError (12)
- Array (24)
-
DEFAULT
_ IGNORE _ PATTERNS (12) -
DEFAULT
_ RAKEFILES (12) -
DELEGATING
_ METHODS (12) - DelegateClass (12)
- Enumerator (12)
- Marshal フォーマット (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
-
WIN
_ PATTERNS (12) - [] (84)
- abbrev (12)
-
add
_ attributes (12) -
add
_ bindir (12) -
add
_ observer (12) - addr (12)
- all? (14)
- any? (16)
-
array
_ attribute (12) -
array
_ attributes (12) -
array
_ nl (12) -
array
_ nl= (12) -
attribute
_ defaults (12) -
attribute
_ names (12) - bsearch (24)
-
bsearch
_ index (10) - build (36)
- categories (1)
-
cert
_ chain (12) - coerce (24)
- collect (24)
- collect! (12)
- collect2 (12)
-
collect
_ concat (24) -
column
_ vector (12) - combination (24)
- concat (33)
- convpath (12)
-
create
_ ext _ from _ array (12) -
create
_ extension (24) - cycle (12)
-
deconstruct
_ keys (9) -
default
_ system _ path (6) -
default
_ system _ path= (6) -
delete
_ at (12) -
delete
_ if (12) - dependencies (12)
-
dependent
_ gems (12) -
development
_ dependencies (12) - diagonal (12)
-
drop
_ while (24) - each (12)
- each2 (12)
-
each
_ index (12) -
enum
_ for (24) - expect (24)
- fetch (12)
-
fiddle
/ import (12) - fields (12)
-
file
_ entries (24) - filter (7)
- filter! (7)
-
find
_ index (12) -
find
_ matching (12) -
find
_ paths (12) -
flat
_ map (24) - flatten (36)
- flatten! (24)
-
gather
_ dependencies (12) -
gem
_ paths (12) - generate (12)
-
generate
_ line (12) - grep (24)
- index (12)
-
keep
_ if (12) -
latest
_ specs (12) - list (24)
- map (24)
- map! (12)
-
mark
_ locations _ array (12) -
marshal
_ dump (12) -
max
_ by (24) -
min
_ by (24) - mkdir (18)
- mkpath (12)
- new (12)
-
next
_ values (12) - none? (14)
- on (36)
- one? (14)
- outdated (12)
- pack (21)
- pack テンプレート文字列 (12)
- path (12)
-
pathmap
_ explode (12) -
peek
_ values (12) - permutation (24)
- pipeline (12)
- private (68)
-
private
_ class _ method (24) - rand (36)
-
rb
_ f _ array (12) - read (12)
- readlines (12)
-
recvfrom
_ nonblock (12) - reject (24)
- reject! (12)
-
remove
_ by _ name (12) -
repeated
_ combination (24) -
repeated
_ permutation (24) -
required
_ attributes (12) - requirements (12)
-
reverse
_ each (12) - rindex (12)
- rotate (12)
- rotate! (12)
-
row
_ vector (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
runtime
_ dependencies (12) - scan (12)
- scanf (36)
-
search
_ convpath (12) -
search
_ with _ source (12) - select (12)
- select! (12)
-
sort
_ by (12) -
sort
_ by! (12) - split (12)
-
split
_ all (12) -
system
_ path (6) -
system
_ path= (6) - table (12)
-
take
_ while (24) -
to
_ a (24) -
to
_ ary (12) -
to
_ enum (24) -
to
_ h (12) -
to
_ hash (12) -
to
_ json (12) -
top
_ level _ tasks (12) - union (12)
- unpack (24)
- unpack1 (9)
- unparse (12)
-
values
_ at (60) -
verify
_ gem (12) -
which
_ to _ update (12) - yaml (12)
- パターンマッチ (12)
- 制御構造 (12)
検索結果
先頭5件
-
Array
# at(nth) -> object | nil (24103.0) -
nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
@param nth インデックスを整数で指定します。
先頭の要素が 0 番目になります。nth の値が負の時には末尾から
のインデックスと見倣します。末尾の要素が -1 番目になります。
整数以外のオブジェクトを指定した場合は to_int メソッドによる
暗黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定... -
Array
# repeated _ combination(n) -> Enumerator (21312.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...得られる組み合わせの順序は保証されません。ブロックなしで呼び出されると、
組み合わせを生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェ......epeated_combination(1).to_a #=> [[1], [2], [3]]
a.repeated_combination(2).to_a #=> [[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]]
a.repeated_combination(3).to_a #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
# [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
a.repeated_combinatio......して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.repeated_combination(3) {|e| result << e} # => [1,2,3]
result #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
# [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
//}
@see Array#repeated_permutation, Array#combination... -
Array
# repeated _ permutation(n) -> Enumerator (21312.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェ......eated_permutation(1).to_a #=> [[1], [2]]
a.repeated_permutation(2).to_a #=> [[1,1],[1,2],[2,1],[2,2]]
a.repeated_permutation(3).to_a #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
a.repeated_permutation(0).to_a #=> [[]] # one permutati......ロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
//}
@see Array#repeated_combination, Array#permutation... -
Array
# repeated _ combination(n) { |c| . . . } -> self (21212.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...得られる組み合わせの順序は保証されません。ブロックなしで呼び出されると、
組み合わせを生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェ......epeated_combination(1).to_a #=> [[1], [2], [3]]
a.repeated_combination(2).to_a #=> [[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]]
a.repeated_combination(3).to_a #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
# [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
a.repeated_combinatio......して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.repeated_combination(3) {|e| result << e} # => [1,2,3]
result #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
# [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
//}
@see Array#repeated_permutation, Array#combination... -
Array
# repeated _ permutation(n) { |p| . . . } -> self (21212.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェ......eated_permutation(1).to_a #=> [[1], [2]]
a.repeated_permutation(2).to_a #=> [[1,1],[1,2],[2,1],[2,2]]
a.repeated_permutation(3).to_a #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
a.repeated_permutation(0).to_a #=> [[]] # one permutati......ロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
//}
@see Array#repeated_combination, Array#permutation... -
Gem
:: Specification . array _ attributes -> Array (15318.0) -
@@array_attributes の複製を返します。
...@@array_attributes の複製を返します。
@see Object#dup... -
Array
# values _ at(*selectors) -> Array (15250.0) -
引数で指定されたインデックスに対応する要素を配列で返します。インデッ クスに対応する値がなければ nil が要素になります。
...ues_at( 0, 2, 4 ) #=> ["a", "c", "e"]
p ary.values_at( 3, 4, 5, 6, 35 ) #=> ["d", "e", nil, nil, nil]
p ary.values_at( 0, -1, -2 ) #=> ["a", "e", "d"]
p ary.values_at( -4, -5, -6, -35 ) #=> ["b", "a", nil, nil]
p ary.values_at( 1..2 ) #=> ["b", "c"]
p ary.values_at( 3........10 ) #=> ["d", "e", nil, nil, nil, nil, nil, nil]
p ary.values_at( 6..7 ) #=> [nil, nil]
p ary.values_at( 0, 3..5 ) #=> ["a", "d", "e", nil]
//}... -
Array
# combination(n) -> Enumerator (15212.0) -
サイズ n の組み合わせをすべて生成し、それを引数としてブロックを実行します。
...得られる組み合わせの順序は保証されません。ブロックなしで呼び出されると、組み合わせ
を生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェ......3, 4]
a.combination(1).to_a #=> [[1],[2],[3],[4]]
a.combination(2).to_a #=> [[1,2],[1,3],[1,4],[2,3],[2,4],[3,4]]
a.combination(3).to_a #=> [[1,2,3],[1,2,4],[1,3,4],[2,3,4]]
a.combination(4).to_a #=> [[1,2,3,4]]
a.combination(0).to_a #=> [[]]: one combination of length 0
a.combination(5).to_a......た配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3, 4]
result = []
a.combination(2) {|e| result << e} # => [1,2,3,4]
result #=> [[1,2],[1,3],[1,4],[2,3],[2,4],[3,4]]
//}
@see Array#permutation, Array#repeated_combination... -
Array
# permutation(n = self . length) -> Enumerator (15212.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
...行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェク......utation.to_a #=> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
a.permutation(1).to_a #=> [[1],[2],[3]]
a.permutation(2).to_a #=> [[1,2],[1,3],[2,1],[2,3],[3,1],[3,2]]
a.permutation(3).to_a #=> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
a.permutation(0).to_a #=> [[]]: one permutati......した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.permutation(2) {|e| result << e} # => [1,2,3]
result # => [[1,2],[1,3],[2,1],[2,3],[3,1],[3,2]]
//}
@see Array#combination, Array#repeated_permutation...