def take.cut

bend-kit-http@0.38.2.0 · http.bend:205

import bend-kit-http@0.38.2.0/http.bend as Http
import Base

205# Bool.pick evaluates both arms; a split that recursed inside it would reverse acc at every byte.
206def take.cut(acc: String, rest: String) -> String & String:
207  (String.reverse(String.drop(acc, 1n)), rest)

Uses (5)

Used by (3)