--- robots: noindex, nofollow tags: refactoring --- # Loops  ## 徵兆與症狀 迴圈內的簡易操作,其實可以用單一 function 來表達,並且用 map、filter、reduce 來簡化寫作。 ## 出現原因 當時所使用的程式語言不支援 `first-class function`。 ## 處理方法 - 使用 `Replace Loops with Pipeline` 來取代以往的迴圈操作。
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up