| Monoid | reduce | Haskell | 程式人 | 林信良 | 程式學習

從reduce認識Monoid

reduce的來源元素,需要有Monoid規範的結合律與恆等值,Monoid更接近純粹數學上的概念,是為了讓程式有更多的組合性

2022-03-24