>
> This will reverse the bytes, you need head because reverse leaves series
> pointer at the tail.
> >> head reverse a
> == #{452301}

That explians the empty string, you guys are really making my code pretty...
--e
>
> And this puts it back.
>
> >> head reverse a
> == #{012345}
>
> To "join" two binary values.
>
> >> append a b
> == #{0123456789}
> >>
>
> Cheers
> -Larry
>
> You wrote:
>
> > I'm finding that REBOL's a pretty nice tool to get close to the
> protocol.
> > Out of curiosity, how do you reverse byte order, for things like the
> length
> > header?  And I havn't seen an elegant way to concatenate binary! type
> data.
> > Join would be nice.
> >
> > >> probe join #{012345} [ #{0123} ]
> > #{012345237B303132337D}
> >
> > >> ; This makes me cringe
> > >> probe to-binary join to-string #{012345} [ to-string #{6798} ]
> > #{0123456798}
> > == #{0123456798}
> >
>

Reply via email to