def low_bit
import bend-collections@1.0.0.0/src/crypto/curve25519/field.bend as Fieldimport Base
307# the parity of the canonical representative (RFC 8032 x_0)
308def low_bit(xs: List<&2, U32>) -> U32:
309 match xs:
310 case Nil{}:
311 0
312 case Con{l, lt}:
313 U32.and(l, 1)