def Ip4.join

bend-kube-runtime@0.2.0.0 · src/proxy.bend:47

import bend-kube-runtime@0.2.0.0/src/proxy.bend as Proxy
import Base

47def Ip4.join(a: Maybe<&2, U32>, b: Maybe<&2, U32>, c: Maybe<&2, U32>, d: Maybe<&2, U32>) ->
48  Maybe<&2, U32>:
49  match a b c d:
50    case Some{w} Some{x} Some{y} Some{z}:
51      Some{U32.add(U32.mul(U32.add(U32.mul(U32.add(U32.mul(w, 256), x), 256), y), 256), z)}
52    case _ _ _ _:
53      None{}

Uses (4)

Used by (1)