Help for this page

Select Code to Download


  1. or download this
    public T Foo<T>(Whatever<T> param) where T : (+), (-), (*), (/) {
     ...
    }
    
  2. or download this
    // in Clean
    foo:: a a a -> a | Arith a
    ...
    public T foo<T>(T x, T y, T z) where T : IArith {
      return x + y * z;
    }