-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
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
Empty chaining #67
Labels
improvement
Some improvement
Comments
Merged
meian
added a commit
that referenced
this issue
Jan 29, 2022
meian
added a commit
that referenced
this issue
Jan 29, 2022
負荷がかからないことを確認するためのテストを用意するかな |
meian
added a commit
that referenced
this issue
Jan 30, 2022
meian
added a commit
that referenced
this issue
Jan 30, 2022
meian
added a commit
that referenced
this issue
Jan 30, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gcf/reverse.go
Lines 18 to 20 in de7836c
この書き方をしている場合、引数の itb にnilを渡すと emptyIterable を返すので処理が軽いが、その次に他の関数を適用したときに empty ではなくなるので空の時にも処理が軽くならない
そのため以下のように修正することで emptyIterable をチェーンできるようにする
こうすることで empty に対する処理に対して常に empty を返せるので、空の処理の場合に負荷がかからなくなる
The text was updated successfully, but these errors were encountered: