def rmsd_checked_go

bend-prot@0.1.0.0 · rmsd.bend:35

import bend-prot@0.1.0.0/rmsd.bend as Rmsd
import Base
import bend-prot@0.1.0.0/protein.bend as P

35# Length-checked RMSD: None{} on unequal lengths, Some{...} otherwise.
36def rmsd_checked_go(
37  ok: Bool, +xs: List<&2, P.Atom>, +ys: List<&2, P.Atom>
38) -> Maybe<&2, F32>:
39  match ok:
40    case True{}:
41      Some{rmsd(xs, ys)}
42    case False{}:
43      None{}

Uses (6)

Used by (1)