def operation_show

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

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

108def operation_show(operation: Operation) -> String:
109  match operation:
110    case Match{}:
111      "0"
112    case Insert{}:
113      "1"
114    case Delete{}:
115      "2"
116    case Mismatch{}:
117      "3"

Uses (2)

Used by (1)