def stripe.items

bend-kit-webhooks@0.11.0.1 · webhooks.bend:371

import bend-kit-webhooks@0.11.0.1/webhooks.bend as Webhooks
import Base

371# The t= and v1= values of comma-separated items; other schemes (v0) are skipped.
372def stripe.items(xs: List<&2, String>) -> List<&2, String> & List<&2, String>:
373  match xs:
374    case Nil{}:
375      (Nil{}, Nil{})
376    case Con{+x, rest}:
377      stripe.item(strip("t=", x), strip("v1=", x), stripe.items(rest))

Uses (6)

Used by (1)