你的位置: 码友网首页 / 资讯源列表 / Improving list sum function based on head and tail with C# 8

关于[Improving list sum function based on head and tail with C# 8]的摘要:

Some time back I wrote about Head- and Tail-like methods in C# (and F# and Python and Haskell). For some strange reasons I came across the Sum method I wrote there and I thought maybe I can rewrite it with switch expression now available in C# and have a nicer looking code. I mean I’m a big fan of succinct (yet still readable) code. But I had no idea what a journey it will be.

原文地址: https://www.tabsoverspaces.com/233813-improving-list-sum-function-based-on-head-and-tail-with-csharp-8

收录时间: 2020-03-11 浏览量: 1386 分类: C#开发

| 0 收藏 | 0