1036件ヒット
[1-100件を表示]
(0.083秒)
ライブラリ
- ビルトイン (442)
- e2mmap (12)
- forwardable (48)
- matrix (186)
-
minitest
/ spec (1) -
net
/ imap (264) - rake (60)
-
syslog
/ logger (12) - tsort (11)
クラス
- Array (48)
-
Enumerator
:: Lazy (124) - Matrix (136)
- Module (1)
-
Net
:: IMAP (96) -
Net
:: IMAP :: Address (12) -
Net
:: IMAP :: ContinuationRequest (24) -
Net
:: IMAP :: Envelope (12) -
Net
:: IMAP :: FetchData (24) -
Net
:: IMAP :: MailboxList (12) -
Net
:: IMAP :: ResponseCode (12) -
Net
:: IMAP :: StatusData (24) -
Net
:: IMAP :: TaggedResponse (24) -
Net
:: IMAP :: UntaggedResponse (24) - Object (48)
-
Rake
:: FileList (12) - String (48)
-
Syslog
:: Logger (12) -
Thread
:: Backtrace :: Location (48) - Vector (50)
モジュール
- Enumerable (174)
- Exception2MessageMapper (12)
- Forwardable (24)
- SingleForwardable (24)
- TSort (11)
キーワード
-
absolute
_ path (12) - append (12)
- attr (36)
- authenticate (12)
-
base
_ label (12) -
chunk
_ while (12) - collect (72)
- collect! (33)
- collect2 (12)
-
collect
_ concat (36) - create (12)
- data (48)
- date (12)
-
def
_ delegators (24) -
def
_ exception (6) -
def
_ instance _ delegators (12) -
def
_ single _ delegators (12) - each (24)
-
each
_ strongly _ connected _ component _ from (11) -
elements
_ to _ f (12) -
elements
_ to _ i (12) -
elements
_ to _ r (12) -
enum
_ for (48) - fatal (12)
- fetch (12)
-
filter
_ map (12) -
flat
_ map (36) - grep (12)
-
grep
_ v (10) -
infect
_ with _ assertions (1) - inspect (12)
- lazy (12)
- mailbox (12)
- map! (33)
- pathmap (24)
-
pathmap
_ explode (12) -
pathmap
_ partial (12) -
pathmap
_ replace (12) -
raw
_ data (36) - route (12)
- seqno (12)
-
slice
_ after (24) -
slice
_ before (24) -
slice
_ when (12) -
sort
_ by (12) - status (12)
- store (12)
-
to
_ enum (48) -
to
_ s (12) -
uid
_ fetch (12) -
uid
_ store (12)
検索結果
先頭5件
-
Enumerator
:: Lazy # map {|item| . . . } -> Enumerator :: Lazy (18236.0) -
Enumerable#map と同じですが、配列ではなくEnumerator::Lazy を返します。
...ble#map と同じですが、配列ではなくEnumerator::Lazy を返します。
@raise ArgumentError ブロックを指定しなかった場合に発生します。
//emlist[例][ruby]{
1.step.lazy.map{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:map>
1.......step.lazy.collect{ |n| n.succ }.take(10).force
# => [2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
//}
@see Enumerable#map... -
Matrix
# map(which = :all) -> Enumerator (18221.0) -
行列の各要素に対してブロックの適用を繰り返した結果を、要素として持つ行列を生成します。
...Enumerator を返します。
@param which which に以下の Symbol を指定することで、
引数として使われる要素を限定できます。
デフォルトは、:all (全ての要素)です。
指定できる Symbol の詳細は、 Matrix#ea......ch の項目を参照して下さい。
//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
p m.map { |x| x + 100 } # => Matrix[[101, 102], [103, 104]]
p m.map(:diagonal) { |x| x * 10 } # => Matrix[[10, 2], [3, 40]]
//}
@see Matrix#each, Matrix#map!... -
Matrix
# map(which = :all) {|x| . . . } -> Matrix (18221.0) -
行列の各要素に対してブロックの適用を繰り返した結果を、要素として持つ行列を生成します。
...Enumerator を返します。
@param which which に以下の Symbol を指定することで、
引数として使われる要素を限定できます。
デフォルトは、:all (全ての要素)です。
指定できる Symbol の詳細は、 Matrix#ea......ch の項目を参照して下さい。
//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
p m.map { |x| x + 100 } # => Matrix[[101, 102], [103, 104]]
p m.map(:diagonal) { |x| x * 10 } # => Matrix[[10, 2], [3, 40]]
//}
@see Matrix#each, Matrix#map!... -
Matrix
# map -> Enumerator (18209.0) -
行列の各要素に対してブロックの適用を繰り返した結果を、要素として持つ行列を生成します。
...適用を繰り返した結果を、要素として持つ行列を生成します。
ブロックがない場合、 Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
p m.map { |x| x + 100 } # => Matrix[[101, 102], [103, 104]]
//}
@see Matrix#each... -
Matrix
# map {|x| . . . } -> Matrix (18209.0) -
行列の各要素に対してブロックの適用を繰り返した結果を、要素として持つ行列を生成します。
...適用を繰り返した結果を、要素として持つ行列を生成します。
ブロックがない場合、 Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
p m.map { |x| x + 100 } # => Matrix[[101, 102], [103, 104]]
//}
@see Matrix#each... -
Array
# map -> Enumerator (15215.0) -
各要素に対してブロックを評価した結果を全て含む配列を返します。
...要素に対してブロックを評価した結果を全て含む配列を返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
# すべて 3 倍にする
p [1, 2, 3].map {|n| n * 3 } # => [3, 6, 9]
//}
@see Enumerable#collect, Enumerable#map......してブロックを評価した結果を全て含む配列を返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
# すべて 3 倍にする
p [1, 2, 3].map {|n| n * 3 } # => [3, 6, 9]
//}
@see Hash#to_h, Enumerable#collect, Enumerable#map... -
Enumerable
# map -> Enumerator (15215.0) -
各要素に対してブロックを評価した結果を全て含む配列を返します。
...全て含む配列を返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
# すべて 3 倍にした配列を返す
p (1..3).map {|n| n * 3 } # => [3, 6, 9]
p (1..3).collect { "cat" } # => ["cat", "cat", "cat"]
//}
@see Array#collect, Array#map......配列を返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
# すべて 3 倍にした配列を返す
p (1..3).map {|n| n * 3 } # => [3, 6, 9]
p (1..3).collect { "cat" } # => ["cat", "cat", "cat"]
//}
@see Hash#to_h, Array#collect, Array#map... -
Vector
# map -> Enumerator (15209.0) -
ベクトルの各要素に対してブロックを評価した結果を、要素として持つベクトルを生成します。
...して持つベクトルを生成します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
a = [1, 2, 3.5, -10]
v1 = Vector.elements(a)
p v1 # => Vector[1, 2, 3.5, -10]
v2 = v1.map{|x|
x * -1
}
p v2 # => Vector[-1, -2, -3.5, 10]
//}... -
Net
:: IMAP :: StatusData # attr -> { String => Integer } (15101.0) -
STATUS 応答の内容をハッシュで返します。
...STATUS 応答の内容をハッシュで返します。
ハッシュのキーは
"MESSAGES", "RECENT", "UIDNEXT", "UIDVALIDITY", "UNSEEN"
などが使われます。
詳しくは 2060 の 6.3.10、7.2.4 を見てください。... -
Enumerator
:: Lazy # flat _ map {|item| . . . } -> Enumerator :: Lazy (12320.0) -
ブロックの実行結果をひとつに繋げたものに対してイテレートするような Enumerator::Lazy のインスタンスを返します。
...ックの実行結果をひとつに繋げたものに対してイテレートするような
Enumerator::Lazy のインスタンスを返します。
//emlist[][ruby]{
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force
#=> ["f", "o", "o", "b", "a", "r"]
//}
ブロックの返した値 x......き
* x が each および force メソッドを持つ (例:Enumerator::Lazy) とき
それ以外のときは、x は分解されず、そのままの値として使われます。
//emlist[][ruby]{
[{a:1}, {b:2}].lazy.flat_map {|i| i}.force
#=> [{:a=>1}, {:b=>2}]
//}
@raise ArgumentError ブ......ロックを指定しなかった場合に発生します。
@see Enumerable#flat_map... -
String
# pathmap _ replace(patterns) { . . . } -> String (12301.0) -
与えられたパスを前もって置き換えます。
...与えられたパスを前もって置き換えます。
@param patterns 'pat1,rep1;pat2,rep2;...' のような形式で置換パターンを指定します。...