Let's say I want to define a type that contains a Function type:

type IterFunc
  iter_trigger::Int64
  func::Function 
end

Is there any way to say that the func member in that type should be a 
function that takes arguments of a certain type?

 Something like (not valid syntax, I tried):

type IterFunc
  iter_trigger::Int64
  func::Function{i::Int64, something::SomeType}
end


?

Reply via email to