def operation_char

bend-edit-distance@0.2.2.0 · EdlibTypes.bend:119

import bend-edit-distance@0.2.2.0/EdlibTypes.bend as EdlibTypes
import Base

119def operation_char(format: CigarFormat, operation: Operation) -> Char:
120  match format operation:
121    case _ Insert{}:
122      'I'
123    case _ Delete{}:
124      'D'
125    case Standard{} _:
126      'M'
127    case Extended{} Match{}:
128      '='
129    case Extended{} Mismatch{}:
130      'X'

Uses (3)

Used by (1)