All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.nacular.doodle.utils.ControlsUtils.kt Maven / Gradle / Ivy

package io.nacular.doodle.utils

/**
 * Simple function that generates a value R given the context of T.
 * This is useful in cases where a property of T is needed:
 *
 * ```kotlin
 *
 * interface Person {
 *     val name: String
 *     val age: Int
 * }
 *
 * val nameExtractor: Extractor = { name }
 *
 * ```
 */
public typealias Extractor = T.() -> R




© 2015 - 2025 Weber Informatics LLC | Privacy Policy