Paul的第二次作业,Use higher-order functions such as map and fold (or adaptations thereof for relevant structures) rather than explicit recursion.也就是用自己针对Pathtree进行fold定义,然后利用fold来替换递归.这个是这次作业的重点.占了三分之一的得分比例.
2022-11-25 02:47:43 160KB haskell 最短路 fold替换递归
1