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

commonMain.it.unibo.collektive.stdlib.collections.FieldedCollectionsExtensions.kt Maven / Gradle / Ivy

There is a newer version: 11.1.3
Show newest version
// This file is auto-generated by the Collektive code generator. Do not edit it manually.
@file:Suppress("all","ktlint")

package it.unibo.collektive.stdlib.collections

import it.unibo.collektive.`field`.Field
import it.unibo.collektive.`field`.Field.Companion.checkAligned
import kotlin.Any
import kotlin.Suppress
import kotlin.collections.Collection
import kotlin.collections.Iterable
import kotlin.collections.List
import kotlin.jvm.JvmName
import kotlin.random.Random
import kotlin.sequences.Sequence

public object FieldedCollectionsExtensions {
  @JvmName("plus_with_Field_of_collections_Collection_of_T_end_end_and_T")
  public operator fun  Field>.plus(element: T): Field> =
      this.mapWithId { _, receiver -> receiver.plus(element) }

  @JvmName("plus_with_collections_Collection_of_T_end_and_Field_of_T_end")
  public operator fun  Collection.plus(element: Field): Field> =
      element.mapWithId { id, receiver -> this.plus(element[id]) }

  @JvmName("plus_with_Field_of_collections_Collection_of_T_end_end_and_Field_of_T_end")
  public operator fun  Field>.plus(element: Field):
      Field> {
    checkAligned(this, element)
    return this.mapWithId { id, receiver -> receiver.plus(element[id]) }
  }

  @JvmName("plus_with_Field_of_collections_Collection_of_T_end_end_and_collections_Iterable_of_T_end")
  public operator fun  Field>.plus(elements: Iterable):
      Field> = this.mapWithId { _, receiver -> receiver.plus(elements) }

  @JvmName("plus_with_collections_Collection_of_T_end_and_Field_of_collections_Iterable_of_T_end_end")
  public operator fun  Collection.plus(elements: Field>):
      Field> = elements.mapWithId { id, receiver -> this.plus(elements[id]) }

  @JvmName("plus_with_Field_of_collections_Collection_of_T_end_end_and_Field_of_collections_Iterable_of_T_end_end")
  public operator fun  Field>.plus(elements: Field>):
      Field> {
    checkAligned(this, elements)
    return this.mapWithId { id, receiver -> receiver.plus(elements[id]) }
  }

  @JvmName("plus_with_Field_of_collections_Collection_of_T_end_end_and_sequences_Sequence_of_T_end")
  public operator fun  Field>.plus(elements: Sequence):
      Field> = this.mapWithId { _, receiver -> receiver.plus(elements) }

  @JvmName("plus_with_collections_Collection_of_T_end_and_Field_of_sequences_Sequence_of_T_end_end")
  public operator fun  Collection.plus(elements: Field>):
      Field> = elements.mapWithId { id, receiver -> this.plus(elements[id]) }

  @JvmName("plus_with_Field_of_collections_Collection_of_T_end_end_and_Field_of_sequences_Sequence_of_T_end_end")
  public operator fun  Field>.plus(elements: Field>):
      Field> {
    checkAligned(this, elements)
    return this.mapWithId { id, receiver -> receiver.plus(elements[id]) }
  }

  @JvmName("random_with_Field_of_collections_Collection_of_T_end_end_and_random_Random")
  public fun  Field>.random(random: Random): Field =
      this.mapWithId { _, receiver -> receiver.random(random) }

  @JvmName("random_with_collections_Collection_of_T_end_and_Field_of_random_Random_end")
  public fun  Collection.random(random: Field): Field =
      random.mapWithId { id, receiver -> this.random(random[id]) }

  @JvmName("random_with_Field_of_collections_Collection_of_T_end_end_and_Field_of_random_Random_end")
  public fun  Field>.random(random: Field):
      Field {
    checkAligned(this, random)
    return this.mapWithId { id, receiver -> receiver.random(random[id]) }
  }

  @JvmName("randomOrNull_with_Field_of_collections_Collection_of_T_end_end_and_random_Random")
  public fun  Field>.randomOrNull(random: Random): Field =
      this.mapWithId { _, receiver -> receiver.randomOrNull(random) }

  @JvmName("randomOrNull_with_collections_Collection_of_T_end_and_Field_of_random_Random_end")
  public fun  Collection.randomOrNull(random: Field): Field =
      random.mapWithId { id, receiver -> this.randomOrNull(random[id]) }

  @JvmName("randomOrNull_with_Field_of_collections_Collection_of_T_end_end_and_Field_of_random_Random_end")
  public fun  Field>.randomOrNull(random: Field):
      Field {
    checkAligned(this, random)
    return this.mapWithId { id, receiver -> receiver.randomOrNull(random[id]) }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy