I have been looking at the following code snippet from the julia-dev forum:

valuetypeof(::()) = ()
valuetypeof{T}(::(T,)) = T
function valuetypeof(x::Tuple)
  t = typeof(x[1])
  @assert allp(y->typeof(y)==t, x)
  t
end


I would like to know what allp is and what happened to it?

Thanks 

Reply via email to