Skip to content

Instantly share code, notes, and snippets.

@Wind4
Created December 11, 2013 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wind4/7906699 to your computer and use it in GitHub Desktop.
Save Wind4/7906699 to your computer and use it in GitHub Desktop.
Lambda 递归
using System;
namespace Alogrithm
{
public class Recursion
{
public static Func<T, TResult> Fix<T, TResult>(Func<Func<T, TResult>, Func<T, TResult>> f)
{
return n => f(Fix(f))(n);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment