remap function

bool remap(
  1. Role role,
  2. Role choice
)

Implementation

bool remap(Role role, Role choice) {
  // ignoreAfterTransformed mapped to ignore in the gui
  if (role == Role.ignoreAfterTransformed) {
    if (choice == Role.ignore) {
      return true;
    }
  }

  return role == choice;
}