582件ヒット
[501-582件を表示]
(0.070秒)
クラス
- CSV (12)
- Encoding (12)
-
Encoding
:: Converter (72) -
Enumerator
:: Lazy (320) -
RDoc
:: Options (36) - Regexp (12)
- String (94)
モジュール
- Enumerable (12)
-
Gem
:: InstallUpdateOptions (12)
キーワード
- chunk (24)
- collect (12)
-
collect
_ concat (12) - convert (12)
- drop (12)
-
drop
_ while (12) - encode (36)
- filter (7)
-
filter
_ map (6) -
find
_ all (12) -
fixed
_ encoding? (12) -
flat
_ map (12) -
force
_ encoding (12) -
force
_ output (12) -
force
_ output= (12) -
force
_ quotes? (12) -
force
_ update (12) - grep (12)
-
grep
_ v (10) -
insert
_ output (12) -
install
_ update _ defaults _ str (12) - iseuc (12)
- lazy (12)
- map (12)
-
primitive
_ convert (48) - reject (12)
- replicate (12)
- select (12)
-
slice
_ after (22) -
slice
_ before (36) -
slice
_ when (11) - take (12)
-
take
_ while (24) -
unicode
_ normalize (11) -
unicode
_ normalized? (11) -
valid
_ encoding? (12) -
with
_ index (12) - zip (24)
検索結果
先頭5件
- Enumerator
:: Lazy # take _ while {|item| . . . } -> Enumerator :: Lazy - Enumerator
:: Lazy # with _ index(offset = 0) -> Enumerator :: Lazy - Enumerator
:: Lazy # with _ index(offset = 0) {|(*args) , idx| . . . } -> Enumerator :: Lazy - Enumerator
:: Lazy # zip(*lists) -> Enumerator :: Lazy - Enumerator
:: Lazy # zip(*lists) {|v1 , v2 , . . . | . . . } -> nil
-
Enumerator
:: Lazy # take _ while {|item| . . . } -> Enumerator :: Lazy (7.0) -
Enumerable#take_while と同じですが、配列ではなくEnumerator::Lazy を返します。
...erator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:zip(#<Enumerator: "a".."z":cycle>)>:take_while>
1.step.lazy.zip(('a'..'z').cycle).take_while { |e| e.first < 100_000 }.force.last(5)
# => [[99995, "y"], [99996, "z"], [99997, "a"], [99998, "b"], [99999, "c"]]
//}
@see Enumerable#take_while... -
Enumerator
:: Lazy # with _ index(offset = 0) -> Enumerator :: Lazy (7.0) -
生成時のパラメータに従って、要素にインデックスを添えて繰り返します。 インデックスは offset から始まります。
...クスは offset から始まります。
ブロックを指定した場合の戻り値は生成時に指定したレシーバ自身です。
//emlist[][ruby]{
("a"..).lazy.with_index(1) { |it, index| puts "#{index}:#{it}" }.take(3).force
# => 1:a
# 2:b
# 3:c
//}
@see Enumerator#with_index... -
Enumerator
:: Lazy # with _ index(offset = 0) {|(*args) , idx| . . . } -> Enumerator :: Lazy (7.0) -
生成時のパラメータに従って、要素にインデックスを添えて繰り返します。 インデックスは offset から始まります。
...クスは offset から始まります。
ブロックを指定した場合の戻り値は生成時に指定したレシーバ自身です。
//emlist[][ruby]{
("a"..).lazy.with_index(1) { |it, index| puts "#{index}:#{it}" }.take(3).force
# => 1:a
# 2:b
# 3:c
//}
@see Enumerator#with_index... -
Enumerator
:: Lazy # zip(*lists) -> Enumerator :: Lazy (7.0) -
Enumerable#zip と同じですが、配列ではなくEnumerator::Lazy を返します。
...uby]{
1.step.lazy.zip(('a'..'z').cycle)
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:zip(#<Enumerator: "a".."z":cycle>)>
1.step.lazy.zip(('a'..'z').cycle).take(30).force.last(6)
# => [[25, "y"], [26, "z"], [27, "a"], [28, "b"], [29, "c"], [30, "d"]]
//}
@see Enumerable#zip... -
Enumerator
:: Lazy # zip(*lists) {|v1 , v2 , . . . | . . . } -> nil (7.0) -
Enumerable#zip と同じですが、配列ではなくEnumerator::Lazy を返します。
...uby]{
1.step.lazy.zip(('a'..'z').cycle)
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:zip(#<Enumerator: "a".."z":cycle>)>
1.step.lazy.zip(('a'..'z').cycle).take(30).force.last(6)
# => [[25, "y"], [26, "z"], [27, "a"], [28, "b"], [29, "c"], [30, "d"]]
//}
@see Enumerable#zip... -
Gem
:: InstallUpdateOptions # install _ update _ defaults _ str -> String (7.0) -
Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。
...Gem コマンドの install サブコマンドに渡されるデフォルトのオプションを返します。
デフォルトのオプションは以下の通りです。
--rdoc --no-force --no-test --wrappers... -
String
# unicode _ normalize(form = :nfc) -> String (7.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列を返します。
...同じ)
"a\u0300".unicode_normalize(:nfc) # => 'à' ("\u00E0" と同じ)
"\u00E0".unicode_normalize(:nfd) # => 'à' ("a\u0300" と同じ)
"\xE0".force_encoding('ISO-8859-1').unicode_normalize(:nfd)
# => Encoding::CompatibilityError raised
//}
@see String#unicod... -
String
# unicode _ normalized?(form = :nfc) -> bool (7.0) -
self が引数 form で指定された正規化形式で Unicode 正規化された文字列か どうかを返します。
...a\u0300".unicode_normalized?(:nfd) # => true
"\u00E0".unicode_normalized? # => true
"\u00E0".unicode_normalized?(:nfd) # => false
"\xE0".force_encoding('ISO-8859-1').unicode_normalized?
# => Encoding::CompatibilityError raised
//}
@see String#unicode_...