def stream.clone.tail

mylsm-lsm-store@0.6.0.1 · src/hub_sha/sha256.bend:221

import mylsm-lsm-store@0.6.0.1/src/hub_sha/sha256.bend as Sha256
import Base
import mylsm-lsm-store@0.6.0.1/src/hub_sha/state.bend as S
import bend-kit-bytes@0.3.2.0/bytes.bend as Packed

221def stream.clone.tail(
222  +compressed: S.State,
223  totals: Nat & Nat,
224  copies: Packed.Bytes & Packed.Bytes
225) -> Stream & Stream:
226  match totals:
227    case (left_total, right_total):
228      match copies:
229        case (left_tail, right_tail):
230          (Stream{compressed, left_tail, left_total},
231            Stream{compressed, right_tail, right_total})

Uses (6)

Used by (1)