2078件ヒット
[1-100件を表示]
(0.096秒)
ライブラリ
- ビルトイン (524)
- e2mmap (36)
- forwardable (48)
- matrix (136)
-
minitest
/ spec (1) - mkmf (12)
-
net
/ imap (920) - psych (108)
- rake (36)
-
rexml
/ sax2listener (24) - set (18)
-
syslog
/ logger (72) - tsort (23)
- win32ole (120)
クラス
- Array (96)
-
Enumerator
:: Lazy (76) - Exception (12)
- Hash (14)
- Matrix (100)
- Module (1)
-
Net
:: IMAP (500) -
Net
:: IMAP :: BodyTypeBasic (96) -
Net
:: IMAP :: BodyTypeMessage (96) -
Net
:: IMAP :: BodyTypeMultipart (60) -
Net
:: IMAP :: BodyTypeText (96) -
Net
:: IMAP :: FetchData (12) -
Net
:: IMAP :: ResponseError (12) -
Net
:: IMAP :: ResponseText (12) -
Net
:: IMAP :: TaggedResponse (24) -
Net
:: IMAP :: UntaggedResponse (12) - Object (56)
-
ObjectSpace
:: WeakMap (24) -
Psych
:: Handler (12) -
Psych
:: Nodes :: Mapping (96) -
Rake
:: FileList (12) - Set (24)
- String (24)
-
Syslog
:: Logger (72) -
Thread
:: Backtrace :: Location (48) - Vector (36)
-
WIN32OLE
_ TYPE (60) -
WIN32OLE
_ TYPELIB (24) -
WIN32OLE
_ VARIABLE (36)
モジュール
- Enumerable (192)
- Exception2MessageMapper (36)
- Forwardable (24)
- Kernel (12)
-
REXML
:: SAX2Listener (24) - SingleForwardable (24)
- TSort (23)
キーワード
- == (12)
- Fail (6)
- Raise (6)
- [] (12)
- []= (12)
-
absolute
_ path (12) -
add
_ response _ handler (24) - anchor (12)
- anchor= (12)
- append (12)
- attr (12)
- authenticate (12)
-
base
_ label (12) - bind (6)
-
chunk
_ while (12) - code (12)
- collect (84)
- collect! (50)
- collect2 (24)
-
collect
_ concat (12) -
content
_ id (36) - copy (12)
- create (12)
- data (12)
- debug (12)
-
def
_ delegators (24) -
def
_ exception (6) -
def
_ instance _ delegators (12) -
def
_ single _ delegators (12) -
default
_ event _ sources (12) -
default
_ ole _ types (12) - delete (12)
- description (36)
- disconnect (12)
- disconnected? (12)
- disposition (48)
- each (24)
-
each
_ strongly _ connected _ component _ from (23) - encoding (36)
-
end
_ prefix _ mapping (12) -
enum
_ for (24) - error (12)
- examine (12)
- expunge (12)
- fail (6)
- fatal (12)
- fetch (12)
-
filter
_ map (18) -
flat
_ map (12) - getacl (12)
- getquota (12)
- getquotaroot (12)
- grep (12)
-
grep
_ v (10) -
implemented
_ ole _ types (12) - implicit (12)
- implicit= (12)
-
infect
_ with _ assertions (1) - info (12)
- inspect (12)
-
install
_ files (12) - lazy (12)
- list (12)
- login (12)
- lsub (12)
- map! (50)
- map2 (12)
-
media
_ subtype (48) -
media
_ type (48) - move (10)
-
ole
_ classes (12) -
ole
_ methods (12) -
ole
_ types (12) - param (48)
- pathmap (12)
-
pathmap
_ explode (12) -
pathmap
_ replace (12) -
raw
_ data (24) -
remove
_ response _ handler (12) - rename (12)
- response= (12)
-
response
_ handlers (12) - search (12)
- select (12)
- setacl (12)
- setquota (12)
-
slice
_ after (24) -
slice
_ before (24) -
slice
_ when (12) - sort (12)
-
sort
_ by (24) -
source
_ ole _ types (12) -
start
_ mapping (12) -
start
_ prefix _ mapping (12) - starttls (24)
- status (12)
- store (12)
- style (12)
- style= (12)
- subscribe (12)
- subtype (48)
- sum (24)
- tag (12)
- tag= (12)
- tap (8)
- thread (12)
-
to
_ enum (24) -
to
_ h (14) -
to
_ s (12) -
uid
_ copy (12) -
uid
_ fetch (12) -
uid
_ move (10) -
uid
_ search (12) -
uid
_ sort (12) -
uid
_ store (12) -
uid
_ thread (12) - unknown (12)
- unsubscribe (12)
-
variable
_ kind (12) - varkind (12)
- visible? (12)
- warn (12)
- xlist (12)
検索結果
先頭5件
-
Enumerator
:: Lazy # map {|item| . . . } -> Enumerator :: Lazy (15148.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 (15133.0) -
行列の各要素に対してブロックの適用を繰り返した結果を、要素として持つ行列を生成します。
...の適用を繰り返した結果を、要素として持つ行列を生成します。
ブロックがない場合、 Enumerator を返します。
@param which which に以下の Symbol を指定することで、
引数として使われる要素を限定できます。......Symbol の詳細は、 Matrix#each の項目を参照して下さい。
//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 (15133.0) -
行列の各要素に対してブロックの適用を繰り返した結果を、要素として持つ行列を生成します。
...の適用を繰り返した結果を、要素として持つ行列を生成します。
ブロックがない場合、 Enumerator を返します。
@param which which に以下の Symbol を指定することで、
引数として使われる要素を限定できます。......Symbol の詳細は、 Matrix#each の項目を参照して下さい。
//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!... -
Array
# map -> Enumerator (15121.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... -
Array
# map {|item| . . . } -> [object] (15121.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 (15121.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... -
Enumerable
# map {|item| . . . } -> [object] (15121.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... -
Matrix
# map -> Enumerator (15115.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 (15115.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... -
Psych
:: Handler # start _ mapping(anchor , tag , implicit , style) -> () (6167.0) -
mapping の開始を見付けたときに呼び出されます。
...mapping の開始を見付けたときに呼び出されます。
anchor には map に関連付けられた anchor の名前が文字列で渡されます。
anchor がない場合には nil が渡されます。
tag には map に関連付けられた tag の名前が文字列で渡されます......されます。
implicit には map が implicit に開始されたかどうかが
真偽値で渡されます。
style には sequence の style が整数値で渡されます。以下のいずれか
です。
* Psych::Nodes::Mapping::BLOCK
* Psych::Nodes::Mapping::FLOW
必要に応じてこ......ください。
@param anchor 関連付けられた anchor の名前
@param tag タグ名
@param implicit mapping が implicit に開始されかどうか
@param style mapping のスタイル
=== 例
以下の YAML ドキュメントを例として考えます。
---
k: !!map { hello: world... -
Enumerator
:: Lazy # filter _ map {|item| . . . } -> Enumerator :: Lazy (6154.0) -
Enumerable#filter_map と同じですが、配列ではなく Enumerator::Lazy を返します。
...Enumerable#filter_map と同じですが、配列ではなく Enumerator::Lazy を返します。
@raise ArgumentError ブロックを指定しなかった場合に発生します。
//emlist[例][ruby]{
1.step.lazy.filter_map { |n| n * 2 if n.even? }
# => #<Enumerator::Lazy: #<Enumerator::Lazy:......(1.step)>:filter_map>
1.step.lazy.filter_map { |n| n * 2 if n.even? }.take(10).force
# => [4, 8, 12, 16, 20, 24, 28, 32, 36, 40]
//}
@see Enumerable#filter_map...