迴圈內的簡易操作,其實可以用單一 function 來表達,並且用 map、filter、reduce 來簡化寫作。
當時所使用的程式語言不支援 first-class function。
first-class function
Replace Loops with Pipeline
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up