> Finally, your size() function should return a tuple with one element > instead of a scalar. You should also have a length function, like this: > Base.length(s::Ngram) = length(s.seq) - s.n + 1 > Base.size(s::Ngram) = (length(s),) >
Note that length(s) is automatically defined if you supply a size(s), because there is a generic definition length(t::AbstractArray) = prod(size(t))::Int
