I am looking for an equivalent to Perl’s unpack
function in Clojure.
Here is some sample Perl code that illustrates what I am trying to accomplish:
<code># get a 5-byte string, skip 3, then grab 2 8-byte strings, then the rest
($leading, $s1, $s2, $trailing) = unpack("A5 x3 A8 A8 A*", $data);
</code>
<code># get a 5-byte string, skip 3, then grab 2 8-byte strings, then the rest
($leading, $s1, $s2, $trailing) = unpack("A5 x3 A8 A8 A*", $data);
</code>
# get a 5-byte string, skip 3, then grab 2 8-byte strings, then the rest
($leading, $s1, $s2, $trailing) = unpack("A5 x3 A8 A8 A*", $data);
Is there an equivalent to unpack
in Clojure?