1831件ヒット
[1-100件を表示]
(0.139秒)
ライブラリ
- English (33)
- ビルトイン (773)
- abbrev (11)
- csv (77)
- expect (22)
- fileutils (11)
- json (55)
- matrix (55)
- open3 (11)
- openssl (33)
- optparse (33)
- pathname (11)
- rake (66)
-
rexml
/ document (11) - rubygems (11)
-
rubygems
/ commands / update _ command (11) -
rubygems
/ commands / which _ command (22) -
rubygems
/ dependency _ installer (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ ext / configure _ builder (11) -
rubygems
/ ext / ext _ conf _ builder (11) -
rubygems
/ ext / rake _ builder (11) -
rubygems
/ format (11) -
rubygems
/ gem _ path _ searcher (22) -
rubygems
/ old _ format (11) -
rubygems
/ requirement (11) -
rubygems
/ security (11) -
rubygems
/ source _ index (22) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ spec _ fetcher (22) -
rubygems
/ specification (154) - scanf (24)
- set (11)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - socket (33)
-
webrick
/ httpserver (11) -
webrick
/ httputils (22)
クラス
- Array (393)
- CSV (44)
-
CSV
:: Row (22) -
CSV
:: Table (11) - Data (2)
-
Encoding
:: Converter (22) -
Gem
:: Commands :: UpdateCommand (11) -
Gem
:: Commands :: WhichCommand (22) -
Gem
:: DependencyInstaller (11) -
Gem
:: DependencyList (11) -
Gem
:: Ext :: ConfigureBuilder (11) -
Gem
:: Ext :: ExtConfBuilder (11) -
Gem
:: Ext :: RakeBuilder (11) -
Gem
:: Format (11) -
Gem
:: GemPathSearcher (22) -
Gem
:: OldFormat (11) -
Gem
:: Requirement (11) -
Gem
:: Security :: Policy (11) -
Gem
:: SourceIndex (22) -
Gem
:: SourceInfoCache (11) -
Gem
:: SpecFetcher (22) -
Gem
:: Specification (154) - IO (34)
- IPSocket (11)
-
JSON
:: State (22) - MatchData (55)
- Matrix (55)
- Module (24)
- Object (44)
-
OpenSSL
:: X509 :: ExtensionFactory (33) - OptionParser (33)
- Pathname (11)
-
REXML
:: Element (11) -
Rake
:: Application (22) -
Rake
:: FileList (22) - Random (22)
- Range (11)
- Rational (22)
- Regexp (11)
- Set (11)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) -
Socket
:: Option (11) - String (42)
- UDPSocket (11)
-
WEBrick
:: HTTPServer :: MountTable (11) -
WEBrick
:: HTTPUtils :: FormData (22)
モジュール
- Enumerable (143)
- FileUtils (22)
- Gem (11)
- JSON (22)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) - Kernel (33)
- Open3 (11)
オブジェクト
- main (16)
キーワード
-
$ INPUT _ RECORD _ SEPARATOR (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ RS (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
DEFAULT
_ IGNORE _ PATTERNS (11) -
DEFAULT
_ RAKEFILES (11) -
DELEGATING
_ METHODS (11) - Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 3
. 0 . 0 (4) -
WIN
_ PATTERNS (11) - [] (77)
- abbrev (11)
-
add
_ attributes (11) -
add
_ bindir (11) - addr (11)
-
array
_ attribute (11) -
array
_ attributes (11) -
array
_ nl (11) -
attribute
_ defaults (11) -
attribute
_ names (11) - bsearch (22)
-
bsearch
_ index (9) - build (33)
-
cert
_ chain (11) - coerce (22)
- collect! (11)
-
collect
_ concat (22) -
column
_ vector (11) - combination (22)
- concat (11)
- convpath (11)
-
create
_ ext _ from _ array (11) -
create
_ extension (22) - cycle (11)
-
deconstruct
_ keys (2) -
delete
_ at (11) -
delete
_ if (11) - dependencies (11)
-
dependent
_ gems (11) -
development
_ dependencies (11) - diagonal (11)
-
drop
_ while (22) - each (11)
-
each
_ index (11) -
enum
_ for (22) - expect (22)
- fetch (11)
-
fiddle
/ import (11) - fields (11)
-
file
_ entries (22) - filter (6)
- filter! (6)
- find (11)
-
find
_ all (11) -
find
_ index (11) -
find
_ matching (11) -
find
_ paths (11) -
flat
_ map (22) - flatten (11)
- flatten! (22)
-
gather
_ dependencies (11) -
gem
_ paths (11) - generate (11)
-
generate
_ line (11) - grep (11)
- index (11)
-
keep
_ if (11) -
latest
_ specs (11) - list (22)
- map! (11)
-
mark
_ locations _ array (11) -
marshal
_ dump (11) -
max
_ by (22) -
min
_ by (22) - mkdir (18)
- mkpath (11)
- new (11)
- on (33)
- outdated (11)
- pack (19)
- pack テンプレート文字列 (11)
-
pathmap
_ explode (11) - permutation (22)
- pipeline (11)
- private (32)
-
private
_ class _ method (8) - rand (22)
-
rb
_ f _ array (11) - read (11)
- readlines (11)
-
recvfrom
_ nonblock (11) - reject (22)
- reject! (11)
-
remove
_ by _ name (11) -
repeated
_ combination (22) -
repeated
_ permutation (22) -
required
_ attributes (11) - requirements (11)
- rindex (11)
-
row
_ vector (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
runtime
_ dependencies (11) - scan (11)
- scanf (24)
-
search
_ convpath (11) -
search
_ with _ source (11) - select (6)
- select! (6)
-
sort
_ by (11) - split (11)
-
split
_ all (11) - table (11)
-
take
_ while (22) -
to
_ a (11) -
to
_ ary (11) -
to
_ enum (22) -
to
_ json (11) -
top
_ level _ tasks (11) - union (11)
- unpack (22)
- unpack1 (8)
- unparse (11)
-
values
_ at (33) -
verify
_ gem (11) -
which
_ to _ update (11) - 制御構造 (11)
検索結果
先頭5件
-
Array
# repeated _ combination(n) -> Enumerator (27412.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引......指定した場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3]
a.repeated_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],......して 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 (27412.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数......mlist[例][ruby]{
a = [1, 2]
a.repeated_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......ロックを実
行して 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 (27312.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引......指定した場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3]
a.repeated_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],......して 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 (27312.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数......mlist[例][ruby]{
a = [1, 2]
a.repeated_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......ロックを実
行して 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
# at(nth) -> object | nil (24203.0) -
nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
...nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
@param nth インデックスを整数で指定します。
先頭の要素が 0 番目になります。nth の値が負の時には末尾から
のインデックス......トを指定した場合は to_int メソッドによる
暗黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
a = [ "a", "b", "......c", "d", "e" ]
a[0] #=> "a"
a[1] #=> "b"
a[-1] #=> "e"
a[-2] #=> "d"
a[10] #=> nil
//}... -
Gem
:: Specification . array _ attributes -> Array (21418.0) -
@@array_attributes の複製を返します。
...@@array_attributes の複製を返します。
@see Object#dup... -
Array
# combination(n) -> Enumerator (21312.0) -
サイズ n の組み合わせをすべて生成し、それを引数としてブロックを実行します。
...生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引......//emlist[例][ruby]{
a = [1, 2, 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......た配列の各要素を引数としてブロックを実
行して 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 (21312.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
...生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数......ist[例][ruby]{
a = [1, 2, 3]
a.permutation.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.permutat......した配列の各要素を引数としてブロックを実
行して 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... -
Array
# find _ index -> Enumerator (21306.0) -
条件に一致する最初の要素の位置を返します。
...置を返します。
等しい要素がひとつもなかった場合は nil を返します。
//emlist[例][ruby]{
p [1, 0, 0, 1, 0].index(1) #=> 0
p [1, 0, 0, 0, 0].index(1) #=> 0
p [0, 0, 0, 0, 0].index(1) #=> nil
//}
ブロックが与えられた場合には、各要素を引数とし......返します。
一つも真にならなかった場合は nil を返します。
//emlist[例][ruby]{
p [0, 1, 0, 1, 0].index {|v| v > 0} #=> 1
//}
引数、ブロックのどちらも与えられなかった場合は、
Enumerator のインスタンスを返します。
@see Array#rindex... -
Gem
:: Specification . array _ attribute(name) -> () (21301.0) -
Gem::Specification.attribute と同じですが、値を配列に格納するアクセサを作ります。
...Gem::Specification.attribute と同じですが、値を配列に格納するアクセサを作ります。
@param name 属性の名前を指定します。
@see Gem::Specification.attribute...