On Thu, 23 Oct 2014 18:28:04 +0000
Max Samukha via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
wrote:

um-hm... maybe this:

  void Foo(T, U) (T delegate (U) a) {
    // here T is bool, U is int for the following sample
    import std.stdio;
    writeln(a(3));
  }

  Foo((int x) => x%2 == 0);

Attachment: signature.asc
Description: PGP signature

Reply via email to