An unconstrained generic function: only operators on T

The complete source of generics_unconstrained.ek9, compiled by the EK9 compiler. Shown on generics.html.

#!ek9
defines module site.generics.unconstrained

  defines function
    eventHandler of type T
      -> shape as T
      require shape?
      //any other 'operator' on T can be used

Download generics_unconstrained.ek9