Haskell使用 FP 修复 ['1','2','3'].map(parseInt)Tzu-Wei2021-09-16#FP#Front-End#Quick Noteconst unary = fn => arg => fn(arg) const result = ['1', '2', '3'].map(unary(parseInt)) // [1, 2, 3]