Swap

data class Swap(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod

Swap

Constructors

Swap
Link copied to clipboard
fun Swap(returnType: Type = VoidType, argumentTypes: List<Pair<Type, Boolean>> = listOf( NumberType to true, NumberType to true, BoolType to false ), varargs: Boolean = false)
Create empty Swap

Functions

component1
Link copied to clipboard
operator fun component1(): Type
component2
Link copied to clipboard
operator fun component2(): List<Pair<Type, Boolean>>
component3
Link copied to clipboard
operator fun component3(): Boolean
copy
Link copied to clipboard
fun copy(returnType: Type = VoidType, argumentTypes: List<Pair<Type, Boolean>> = listOf( NumberType to true, NumberType to true, BoolType to false ), varargs: Boolean = false): ArrayType.Swap
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

argumentTypes
Link copied to clipboard
open override var argumentTypes: List<Pair<Type, Boolean>>
returnType
Link copied to clipboard
open override val returnType: Type
varargs
Link copied to clipboard
open override val varargs: Boolean = false