Hi everybody, I have several functions operating on one dimensional vectors.
Within each function the first thing I do is to define variable n holding the length of input vector x: n = length(x) Is that possible to factor out this pattern somehow from all functions definitions? (...like 'traits' in Scala) I mean, to make variable n automatically defined as a length of the first argument (which is always a one dimensional vector) of each function?
