We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://docs.ruby-lang.org/ja/latest/method/Enumerable/i/chunk.html
Enumerable#chunkでは、ブロックの評価値が nil, :_separator, :_alone, その他の_から始まるシンボルであるときにそれを特別扱いします。
Enumerable#chunk
nil
:_separator
:_alone
_
ところが、それに関する記述はサンプルコードを3つ挟んだ、ドキュメントの中盤にしか書かれていません。 そのため、ドキュメントをパット見ただけでは、特別扱いされる値があることを見落としてしまいそうです。
なので、特別扱いされるブロックの評価値に関しては、ドキュメントの上の方でも触れたほうが良いと思います。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://docs.ruby-lang.org/ja/latest/method/Enumerable/i/chunk.html
Enumerable#chunk
では、ブロックの評価値がnil
,:_separator
,:_alone
, その他の_
から始まるシンボルであるときにそれを特別扱いします。ところが、それに関する記述はサンプルコードを3つ挟んだ、ドキュメントの中盤にしか書かれていません。
そのため、ドキュメントをパット見ただけでは、特別扱いされる値があることを見落としてしまいそうです。
なので、特別扱いされるブロックの評価値に関しては、ドキュメントの上の方でも触れたほうが良いと思います。
The text was updated successfully, but these errors were encountered: