在6章瞭解您一個Haskell,介紹了以下功能: zipWith' :: (a -> b -> c) -> [a] -> [b] -> [c]
zipWith' _ [] _ = []
zipWith' _ _ [] = []
zipWith' f (x:xs) (y:ys) = f x y : zipWith' f xs ys
筆者給出它的使用,我發現很容易遵循的幾個例子。那麼這一個:
我正試圖圍繞這是否可能。我的直覺是,它不是但想確認。 以下高階函數使用空合併運算符: public static Func<T> Coalesce<T>(this Func<T> source)
where T : class
{
T local = default(T);
return delegate
{
return l