ifAbsent method

void ifAbsent (void ifAbsent())

Execution a function if the Optional value is absent.

Implementation

void ifAbsent(void ifAbsent()) {
  if (!isPresent) {
    ifAbsent();
  }
}