package ru.sicamp.sicamphelper.util fun R.ifNotNull(obj: T?, block: R.(T) -> R): R = if (obj != null) block(obj) else this fun R.ifNotEmpty(list: List, block: R.(List) -> R): R = if (list.isNotEmpty()) block(list) else this