737件ヒット
[701-737件を表示]
(0.184秒)
別のキーワード
ライブラリ
- ビルトイン (341)
- matrix (66)
- mkmf (66)
-
net
/ http (11) - pathname (22)
- rake (11)
-
rdoc
/ context (22) -
rdoc
/ top _ level (22) -
rexml
/ document (11) -
rubygems
/ command _ manager (22) -
rubygems
/ commands / dependency _ command (22) -
rubygems
/ commands / which _ command (11) -
rubygems
/ dependency _ installer (22) -
rubygems
/ dependency _ list (11) -
rubygems
/ gem _ path _ searcher (22) -
rubygems
/ source _ index (11) -
rubygems
/ spec _ fetcher (11) - socket (22)
- uri (11)
クラス
- Array (125)
- BasicObject (11)
-
Enumerator
:: Lazy (28) -
Gem
:: CommandManager (22) -
Gem
:: Commands :: DependencyCommand (22) -
Gem
:: Commands :: WhichCommand (11) -
Gem
:: DependencyInstaller (22) -
Gem
:: DependencyList (11) -
Gem
:: GemPathSearcher (22) -
Gem
:: SourceIndex (11) -
Gem
:: SpecFetcher (11) - Matrix (66)
-
Net
:: HTTP (11) - Pathname (22)
-
RDoc
:: Context (22) -
RDoc
:: TopLevel (22) - Range (22)
-
Socket
:: AncillaryData (11) -
Socket
:: Ifaddr (11) - String (11)
-
URI
:: Generic (11)
モジュール
- Enumerable (144)
- Kernel (77)
-
REXML
:: Node (11)
キーワード
- bsearch (44)
-
bsearch
_ index (18) - detect (22)
- filter (18)
-
find
_ all (44) -
find
_ command (11) -
find
_ command _ possibilities (11) -
find
_ enclosing _ module _ named (11) -
find
_ executable (11) -
find
_ first _ recursive (11) -
find
_ gems (11) -
find
_ gems _ with _ sources (11) -
find
_ header (11) -
find
_ index (99) -
find
_ library (22) -
find
_ local _ symbol (11) -
find
_ matching (11) -
find
_ module _ named (22) -
find
_ name (22) -
find
_ paths (11) -
find
_ proxy (11) -
find
_ reverse _ dependencies (11) -
find
_ spec _ by _ name _ and _ version (11) -
find
_ type (22) - ifindex (11)
- index (66)
-
ipv6
_ pktinfo _ ifindex (11) - lazy (11)
-
method
_ missing (11) - namespace (11)
- pack (19)
- propfind (11)
- select (33)
- unpack (11)
検索結果
先頭4件
-
Enumerable
# lazy -> Enumerator :: Lazy (3207.0) -
自身を lazy な Enumerator に変換したものを返します。
...な Enumerator に変換したものを返します。
この Enumerator は、以下のメソッドが遅延評価を行う (つまり、配列ではな
くEnumeratorを返す) ように再定義されています。
* map/collect
* flat_map/collect_concat
* select/find_all
* reject
* grep......* take, take_while
* drop, drop_while
* zip (※一貫性のため、ブロックを渡さないケースのみlazy)
* cycle (※一貫性のため、ブロックを渡さないケースのみlazy)
以下はピタゴラス数 (a**2 + b**2 = c**2 を満たす自然数 a, b, c の組) を
列挙....../emlist[例][ruby]{
def pythagorean_triples
(1..Float::INFINITY).lazy.flat_map {|z|
(1..z).flat_map {|x|
(x..z).select {|y|
x**2 + y**2 == z**2
}.map {|y|
[x, y, z]
}
}
}
end
# 最初の10個のピタゴラス数を表示する
p pythagorean_triples.take... -
Array
# pack(template) -> String (321.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
...配列の内容を template で指定された文字列にしたがって、
バイナリとしてパックした文字列を返します。
テンプレートは
型指定文字列とその長さ(省略時は1)を並べたものです。長さと
して * が指定された時は「残りのデ......ータ全て」の長さを
表します。型指定文字は以下で述べる pack テンプレート文字列の通りです。
@param template 自身のバイナリとしてパックするためのテンプレートを文字列で指定します。
以下にあげるものは、Array#pack、......なら >
を後ろにつけます。! と組み合わせることも可能です。
まとめると以下のようになります。
: エンディアン非依存、整数サイズ非依存 (ネットワークプロトコルなどに適切)
//emlist{
n: big endian unsigned 16bit
N: big endian......字列の通りです。
buffer が指定されていれば、バッファとして使って返値として返します。
もし template の最初にオフセット (@) が指定されていれば、
結果はオフセットの後ろから詰められます。
buffer の元の内容がオフセ......。
buffer オプションはメモリ確保が発生しないことを保証するものでは
ないことに注意してください。
buffer のサイズ(capacity)が足りなければ、packはメモリを確保します。
//emlist[例][ruby]{
['!'].pack('@1a', buffer: 'abc') # => "a!"
['!... -
Array
# pack(template , buffer: String . new) -> String (321.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
...配列の内容を template で指定された文字列にしたがって、
バイナリとしてパックした文字列を返します。
テンプレートは
型指定文字列とその長さ(省略時は1)を並べたものです。長さと
して * が指定された時は「残りのデ......字列の通りです。
buffer が指定されていれば、バッファとして使って返値として返します。
もし template の最初にオフセット (@) が指定されていれば、
結果はオフセットの後ろから詰められます。
buffer の元の内容がオフセ......。
buffer オプションはメモリ確保が発生しないことを保証するものでは
ないことに注意してください。
buffer のサイズ(capacity)が足りなければ、packはメモリを確保します。
//emlist[例][ruby]{
['!'].pack('@1a', buffer: 'abc') # => "a!"
['!... -
String
# unpack(template) -> Array (321.0) -
Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。
...Array#pack で生成された文字列を
テンプレート文字列 template にしたがってアンパックし、
それらの要素を含む配列を返します。
@param template pack テンプレート文字列
@return オブジェクトの配列
以下にあげるもの......なら >
を後ろにつけます。! と組み合わせることも可能です。
まとめると以下のようになります。
: エンディアン非依存、整数サイズ非依存 (ネットワークプロトコルなどに適切)
//emlist{
n: big endian unsigned 16bit
N: big endian......unsigned 32bit
v: little endian unsigned 16bit
V: little endian unsigned 32bit
//}
: エンディアン依存、整数サイズ依存 (C の構造体などに適切)
//emlist{
s!: signed short
S!: unsigned short
i,i!: signed int
I,I!: unsigned int
l!: signed long
L!: unsigned long...