[Bro] Combining Vectors
Johanna Amann
johanna at icir.org
Tue Apr 25 08:09:38 PDT 2017
Hi Dave,
I am not aware of a merge built-in for combining vectors; so your approach
probably is the best there is.
Johanna
On Thu, Apr 20, 2017 at 01:32:34PM -0400, Dave Crawford wrote:
> This is how I implemented the “merge” I needed:
>
> for (i in vec1) { vec3[|vec3|] = vec1[i]; }
> for (i in vec2) { vec3[|vec3|] = vec2[i]; }
>
> -Dave
>
> > On Apr 19, 2017, at 2:24 PM, Dave Crawford <bro at pingtrip.com> wrote:
> >
> > Is there a built-in for combining two vectors, or is a for loop the approach?
> >
> > As an example:
> >
> > vec1 = vector( 1, 2, 3 );
> > vec2 = vector( 4, 5, 6 );
> >
> > ...Magic happens here...
> >
> > vec3 = (1,2,3,4,5,6)
> >
> >
> > -Dave
> > _______________________________________________
> > Bro mailing list
> > bro at bro-ids.org
> > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro
>
>
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro
>
More information about the Bro
mailing list