commonMain.it.unibo.collektive.stdlib.chararrays.FieldedArraysExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stdlib-jvm Show documentation
Show all versions of stdlib-jvm Show documentation
DSL for Aggregate Computing in Kotlin
// This file is auto-generated by the Collektive code generator. Do not edit it manually.
@file:Suppress("all","ktlint")
package it.unibo.collektive.stdlib.chararrays
import it.unibo.collektive.`field`.Field
import it.unibo.collektive.`field`.Field.Companion.checkAligned
import kotlin.Any
import kotlin.Boolean
import kotlin.Char
import kotlin.CharArray
import kotlin.CharSequence
import kotlin.Comparable
import kotlin.Comparator
import kotlin.Function1
import kotlin.Function2
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Collection
import kotlin.collections.IndexedValue
import kotlin.collections.Iterable
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.collections.Set
import kotlin.jvm.JvmName
import kotlin.random.Random
import kotlin.ranges.IntRange
public object FieldedArraysExtensions {
@JvmName("all_with_Field_of_CharArray_end_and_Function1_of_Char_and_Boolean_end")
public inline fun Field.all(crossinline
predicate: Function1): Field =
this.mapWithId { _, receiver -> receiver.all(predicate) }
@JvmName("all_with_CharArray_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun CharArray.all(predicate: Field>):
Field = predicate.mapWithId { id, receiver -> this.all(predicate[id]) }
@JvmName("all_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun Field.all(predicate: Field>):
Field {
checkAligned(this, predicate)
return this.mapWithId { id, receiver -> receiver.all(predicate[id]) }
}
@JvmName("any_with_Field_of_CharArray_end")
public fun Field.any(): Field = map { it.any() }
@JvmName("any_with_Field_of_CharArray_end_and_Function1_of_Char_and_Boolean_end")
public inline fun Field.any(crossinline
predicate: Function1): Field =
this.mapWithId { _, receiver -> receiver.any(predicate) }
@JvmName("any_with_CharArray_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun CharArray.any(predicate: Field>):
Field = predicate.mapWithId { id, receiver -> this.any(predicate[id]) }
@JvmName("any_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun Field.any(predicate: Field>):
Field {
checkAligned(this, predicate)
return this.mapWithId { id, receiver -> receiver.any(predicate[id]) }
}
@JvmName("asIterable_with_Field_of_CharArray_end")
public fun Field.asIterable(): Field> =
map { it.asIterable() }
@JvmName("asList_with_Field_of_CharArray_end")
public fun Field.asList(): Field> = map { it.asList() }
@JvmName("associate_with_Field_of_CharArray_end_and_Function1_of_Char_and_Pair_of_K_and_V_end_end")
public inline fun Field.associate(crossinline
transform: Function1>): Field> =
this.mapWithId { _, receiver -> receiver.associate(transform) }
@JvmName("associate_with_CharArray_and_Field_of_Function1_of_Char_and_Pair_of_K_and_V_end_end_end")
public fun
CharArray.associate(transform: Field>>): Field> =
transform.mapWithId { id, receiver -> this.associate(transform[id]) }
@JvmName("associate_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_Pair_of_K_and_V_end_end_end")
public fun
Field.associate(transform: Field>>):
Field> {
checkAligned(this, transform)
return this.mapWithId { id, receiver -> receiver.associate(transform[id]) }
}
@JvmName("associateBy_with_Field_of_CharArray_end_and_Function1_of_Char_and_K_end")
public inline fun Field.associateBy(crossinline
keySelector: Function1): Field> =
this.mapWithId { _, receiver -> receiver.associateBy(keySelector) }
@JvmName("associateBy_with_CharArray_and_Field_of_Function1_of_Char_and_K_end_end")
public fun CharArray.associateBy(keySelector: Field>):
Field> =
keySelector.mapWithId { id, receiver -> this.associateBy(keySelector[id]) }
@JvmName("associateBy_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_K_end_end")
public fun
Field.associateBy(keySelector: Field>):
Field> {
checkAligned(this, keySelector)
return this.mapWithId { id, receiver -> receiver.associateBy(keySelector[id]) }
}
@JvmName("associateBy_with_Field_of_CharArray_end_and_Function1_of_Char_and_K_end_and_Function1_of_Char_and_V_end")
public inline fun Field.associateBy(crossinline
keySelector: Function1, crossinline valueTransform: Function1):
Field> =
this.mapWithId { _, receiver -> receiver.associateBy(keySelector, valueTransform) }
@JvmName("associateBy_with_CharArray_and_Field_of_Function1_of_Char_and_K_end_end_and_Function1_of_Char_and_V_end")
public inline fun
CharArray.associateBy(keySelector: Field>, crossinline
valueTransform: Function1): Field> =
keySelector.mapWithId { id, receiver -> this.associateBy(keySelector[id], valueTransform) }
@JvmName("associateBy_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_K_end_end_and_Function1_of_Char_and_V_end")
public inline fun
Field.associateBy(keySelector: Field>, crossinline
valueTransform: Function1): Field> {
checkAligned(this, keySelector)
return this.mapWithId { id, receiver -> receiver.associateBy(keySelector[id], valueTransform) }
}
@JvmName("associateBy_with_CharArray_and_Function1_of_Char_and_K_end_and_Field_of_Function1_of_Char_and_V_end_end")
public inline fun CharArray.associateBy(crossinline
keySelector: Function1, valueTransform: Field>):
Field> =
valueTransform.mapWithId { id, receiver -> this.associateBy(keySelector, valueTransform[id]) }
@JvmName("associateBy_with_Field_of_CharArray_end_and_Function1_of_Char_and_K_end_and_Field_of_Function1_of_Char_and_V_end_end")
public inline fun Field.associateBy(crossinline
keySelector: Function1, valueTransform: Field>):
Field> {
checkAligned(this, valueTransform)
return this.mapWithId { id, receiver -> receiver.associateBy(keySelector, valueTransform[id]) }
}
@JvmName("associateBy_with_CharArray_and_Field_of_Function1_of_Char_and_K_end_end_and_Field_of_Function1_of_Char_and_V_end_end")
public fun CharArray.associateBy(keySelector: Field>,
valueTransform: Field>): Field> {
checkAligned(keySelector, valueTransform)
return keySelector.mapWithId { id, receiver -> this.associateBy(keySelector[id], valueTransform[id]) }
}
@JvmName("associateBy_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_K_end_end_and_Field_of_Function1_of_Char_and_V_end_end")
public fun
Field.associateBy(keySelector: Field>,
valueTransform: Field>): Field> {
checkAligned(this, keySelector, valueTransform)
return this.mapWithId { id, receiver -> receiver.associateBy(keySelector[id], valueTransform[id]) }
}
@JvmName("contains_with_Field_of_CharArray_end_and_Char")
public fun Field.contains(element: Char): Field =
this.mapWithId { _, receiver -> receiver.contains(element) }
@JvmName("contains_with_CharArray_and_Field_of_Char_end")
public fun CharArray.contains(element: Field): Field =
element.mapWithId { id, receiver -> this.contains(element[id]) }
@JvmName("contains_with_Field_of_CharArray_end_and_Field_of_Char_end")
public fun Field.contains(element: Field):
Field {
checkAligned(this, element)
return this.mapWithId { id, receiver -> receiver.contains(element[id]) }
}
@JvmName("count_with_Field_of_CharArray_end_and_Function1_of_Char_and_Boolean_end")
public inline fun Field.count(crossinline
predicate: Function1): Field =
this.mapWithId { _, receiver -> receiver.count(predicate) }
@JvmName("count_with_CharArray_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun CharArray.count(predicate: Field>):
Field = predicate.mapWithId { id, receiver -> this.count(predicate[id]) }
@JvmName("count_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun Field.count(predicate: Field>):
Field {
checkAligned(this, predicate)
return this.mapWithId { id, receiver -> receiver.count(predicate[id]) }
}
@JvmName("distinct_with_Field_of_CharArray_end")
public fun Field.distinct(): Field> =
map { it.distinct() }
@JvmName("distinctBy_with_Field_of_CharArray_end_and_Function1_of_Char_and_K_end")
public inline fun Field.distinctBy(crossinline
selector: Function1): Field> =
this.mapWithId { _, receiver -> receiver.distinctBy(selector) }
@JvmName("distinctBy_with_CharArray_and_Field_of_Function1_of_Char_and_K_end_end")
public fun CharArray.distinctBy(selector: Field>):
Field> = selector.mapWithId { id, receiver -> this.distinctBy(selector[id]) }
@JvmName("distinctBy_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_K_end_end")
public fun Field.distinctBy(selector: Field>):
Field> {
checkAligned(this, selector)
return this.mapWithId { id, receiver -> receiver.distinctBy(selector[id]) }
}
@JvmName("drop_with_Field_of_CharArray_end_and_Int")
public fun Field.drop(n: Int): Field> =
this.mapWithId { _, receiver -> receiver.drop(n) }
@JvmName("drop_with_CharArray_and_Field_of_Int_end")
public fun CharArray.drop(n: Field): Field> =
n.mapWithId { id, receiver -> this.drop(n[id]) }
@JvmName("drop_with_Field_of_CharArray_end_and_Field_of_Int_end")
public fun Field.drop(n: Field): Field> {
checkAligned(this, n)
return this.mapWithId { id, receiver -> receiver.drop(n[id]) }
}
@JvmName("dropLast_with_Field_of_CharArray_end_and_Int")
public fun Field.dropLast(n: Int): Field> =
this.mapWithId { _, receiver -> receiver.dropLast(n) }
@JvmName("dropLast_with_CharArray_and_Field_of_Int_end")
public fun CharArray.dropLast(n: Field): Field> =
n.mapWithId { id, receiver -> this.dropLast(n[id]) }
@JvmName("dropLast_with_Field_of_CharArray_end_and_Field_of_Int_end")
public fun Field.dropLast(n: Field): Field> {
checkAligned(this, n)
return this.mapWithId { id, receiver -> receiver.dropLast(n[id]) }
}
@JvmName("dropLastWhile_with_Field_of_CharArray_end_and_Function1_of_Char_and_Boolean_end")
public inline fun Field.dropLastWhile(crossinline
predicate: Function1): Field> =
this.mapWithId { _, receiver -> receiver.dropLastWhile(predicate) }
@JvmName("dropLastWhile_with_CharArray_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun CharArray.dropLastWhile(predicate: Field>):
Field> =
predicate.mapWithId { id, receiver -> this.dropLastWhile(predicate[id]) }
@JvmName("dropLastWhile_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun
Field.dropLastWhile(predicate: Field>):
Field> {
checkAligned(this, predicate)
return this.mapWithId { id, receiver -> receiver.dropLastWhile(predicate[id]) }
}
@JvmName("dropWhile_with_Field_of_CharArray_end_and_Function1_of_Char_and_Boolean_end")
public inline fun Field.dropWhile(crossinline
predicate: Function1): Field> =
this.mapWithId { _, receiver -> receiver.dropWhile(predicate) }
@JvmName("dropWhile_with_CharArray_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun CharArray.dropWhile(predicate: Field>):
Field> = predicate.mapWithId { id, receiver -> this.dropWhile(predicate[id]) }
@JvmName("dropWhile_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun
Field.dropWhile(predicate: Field>):
Field> {
checkAligned(this, predicate)
return this.mapWithId { id, receiver -> receiver.dropWhile(predicate[id]) }
}
@JvmName("filter_with_Field_of_CharArray_end_and_Function1_of_Char_and_Boolean_end")
public inline fun Field.filter(crossinline
predicate: Function1): Field> =
this.mapWithId { _, receiver -> receiver.filter(predicate) }
@JvmName("filter_with_CharArray_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun CharArray.filter(predicate: Field>):
Field> = predicate.mapWithId { id, receiver -> this.filter(predicate[id]) }
@JvmName("filter_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun Field.filter(predicate: Field>):
Field> {
checkAligned(this, predicate)
return this.mapWithId { id, receiver -> receiver.filter(predicate[id]) }
}
@JvmName("filterIndexed_with_Field_of_CharArray_end_and_Function2_of_Int_and_Char_and_Boolean_end")
public inline fun Field.filterIndexed(crossinline
predicate: Function2): Field> =
this.mapWithId { _, receiver -> receiver.filterIndexed(predicate) }
@JvmName("filterIndexed_with_CharArray_and_Field_of_Function2_of_Int_and_Char_and_Boolean_end_end")
public fun
CharArray.filterIndexed(predicate: Field>):
Field> =
predicate.mapWithId { id, receiver -> this.filterIndexed(predicate[id]) }
@JvmName("filterIndexed_with_Field_of_CharArray_end_and_Field_of_Function2_of_Int_and_Char_and_Boolean_end_end")
public fun
Field.filterIndexed(predicate: Field>):
Field> {
checkAligned(this, predicate)
return this.mapWithId { id, receiver -> receiver.filterIndexed(predicate[id]) }
}
@JvmName("filterNot_with_Field_of_CharArray_end_and_Function1_of_Char_and_Boolean_end")
public inline fun Field.filterNot(crossinline
predicate: Function1): Field> =
this.mapWithId { _, receiver -> receiver.filterNot(predicate) }
@JvmName("filterNot_with_CharArray_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun CharArray.filterNot(predicate: Field>):
Field> = predicate.mapWithId { id, receiver -> this.filterNot(predicate[id]) }
@JvmName("filterNot_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun
Field.filterNot(predicate: Field>):
Field> {
checkAligned(this, predicate)
return this.mapWithId { id, receiver -> receiver.filterNot(predicate[id]) }
}
@JvmName("first_with_Field_of_CharArray_end")
public fun Field.first(): Field = map { it.first() }
@JvmName("first_with_Field_of_CharArray_end_and_Function1_of_Char_and_Boolean_end")
public inline fun Field.first(crossinline
predicate: Function1): Field =
this.mapWithId { _, receiver -> receiver.first(predicate) }
@JvmName("first_with_CharArray_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun CharArray.first(predicate: Field>):
Field = predicate.mapWithId { id, receiver -> this.first(predicate[id]) }
@JvmName("first_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun Field.first(predicate: Field>):
Field {
checkAligned(this, predicate)
return this.mapWithId { id, receiver -> receiver.first(predicate[id]) }
}
@JvmName("firstOrNull_with_Field_of_CharArray_end")
public fun Field.firstOrNull(): Field =
map { it.firstOrNull() }
@JvmName("firstOrNull_with_Field_of_CharArray_end_and_Function1_of_Char_and_Boolean_end")
public inline fun Field.firstOrNull(crossinline
predicate: Function1): Field =
this.mapWithId { _, receiver -> receiver.firstOrNull(predicate) }
@JvmName("firstOrNull_with_CharArray_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun CharArray.firstOrNull(predicate: Field>):
Field = predicate.mapWithId { id, receiver -> this.firstOrNull(predicate[id]) }
@JvmName("firstOrNull_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_Boolean_end_end")
public fun
Field.firstOrNull(predicate: Field>):
Field {
checkAligned(this, predicate)
return this.mapWithId { id, receiver -> receiver.firstOrNull(predicate[id]) }
}
@JvmName("flatMap_with_Field_of_CharArray_end_and_Function1_of_Char_and_collections_Iterable_of_R_end_end")
public inline fun Field.flatMap(crossinline
transform: Function1>): Field> =
this.mapWithId { _, receiver -> receiver.flatMap(transform) }
@JvmName("flatMap_with_CharArray_and_Field_of_Function1_of_Char_and_collections_Iterable_of_R_end_end_end")
public fun CharArray.flatMap(transform: Field>>):
Field> = transform.mapWithId { id, receiver -> this.flatMap(transform[id]) }
@JvmName("flatMap_with_Field_of_CharArray_end_and_Field_of_Function1_of_Char_and_collections_Iterable_of_R_end_end_end")
public fun
Field.flatMap(transform: Field>>):
Field> {
checkAligned(this, transform)
return this.mapWithId { id, receiver -> receiver.flatMap(transform[id]) }
}
@JvmName("getOrNull_with_Field_of_CharArray_end_and_Int")
public fun Field.getOrNull(index: Int): Field =
this.mapWithId { _, receiver -> receiver.getOrNull(index) }
@JvmName("getOrNull_with_CharArray_and_Field_of_Int_end")
public fun CharArray.getOrNull(index: Field): Field =
index.mapWithId { id, receiver -> this.getOrNull(index[id]) }
@JvmName("getOrNull_with_Field_of_CharArray_end_and_Field_of_Int_end")
public fun Field.getOrNull(index: Field): Field {
checkAligned(this, index)
return this.mapWithId { id, receiver -> receiver.getOrNull(index[id]) }
}
@JvmName("groupBy_with_Field_of_CharArray_end_and_Function1_of_Char_and_K_end")
public inline fun Field.groupBy(crossinline
keySelector: Function1): Field>> =
this.mapWithId { _, receiver -> receiver.groupBy(keySelector) }
@JvmName("groupBy_with_CharArray_and_Field_of_Function1_of_Char_and_K_end_end")
public fun CharArray.groupBy(keySelector: Field>):
Field