java.lang.Object
java.lang.Record
org.aya.concrete.Expr.Array.CompBlock
- Record Components:
generator-x * ypart abovebinds-x invalid input: '<'- [1, 2, 3], y invalid input: '<'- [4, 5, 6]part abovebindName- the bind (>>=) function, it isConstants.monadBind in defaultpureName- the pure (return) function, it isConstants.functorPure in default
- Enclosing class:
Expr.Array
public static record Expr.Array.CompBlock(@NotNull Expr generator, @NotNull kala.collection.immutable.ImmutableSeq<Expr.DoBind> binds, @NotNull Expr bindName, @NotNull Expr pureName)
extends Record
Array Comp(?)
The (half?) primary part of Expr.Array
For example: [x * y | x invalid input: '<'- [1, 2, 3], y invalid input: '<'- [4, 5, 6]]
- API Note:
- a ArrayCompBlock will be desugar to a do-block. For the example above, it will be desugared to
do x invalid input: '<'- [1, 2, 3] y invalid input: '<'- [4, 5, 6] return x * y
-
Constructor Summary
ConstructorsConstructorDescriptionCompBlock(@NotNull Expr generator, @NotNull kala.collection.immutable.ImmutableSeq<Expr.DoBind> binds, @NotNull Expr bindName, @NotNull Expr pureName) Creates an instance of aCompBlockrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull ExprbindName()Returns the value of thebindNamerecord component.@NotNull kala.collection.immutable.ImmutableSeq<Expr.DoBind>binds()Returns the value of thebindsrecord component.@NotNull Expr.Array.CompBlockdescent(@NotNull UnaryOperator<@NotNull Expr> f) final booleanIndicates whether some other object is "equal to" this one.@NotNull ExprReturns the value of thegeneratorrecord component.final inthashCode()Returns a hash code value for this object.@NotNull ExprpureName()Returns the value of thepureNamerecord component.final StringtoString()Returns a string representation of this record class.@NotNull Expr.Array.CompBlockupdate(@NotNull Expr generator, @NotNull kala.collection.immutable.ImmutableSeq<Expr.DoBind> binds, @NotNull Expr bindName, @NotNull Expr pureName)
-
Constructor Details
-
CompBlock
public CompBlock(@NotNull @NotNull Expr generator, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr.DoBind> binds, @NotNull @NotNull Expr bindName, @NotNull @NotNull Expr pureName) Creates an instance of aCompBlockrecord class.
-
-
Method Details
-
update
@NotNull public @NotNull Expr.Array.CompBlock update(@NotNull @NotNull Expr generator, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Expr.DoBind> binds, @NotNull @NotNull Expr bindName, @NotNull @NotNull Expr pureName) -
descent
@NotNull public @NotNull Expr.Array.CompBlock descent(@NotNull @NotNull UnaryOperator<@NotNull Expr> f) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
generator
Returns the value of thegeneratorrecord component.- Returns:
- the value of the
generatorrecord component
-
binds
Returns the value of thebindsrecord component.- Returns:
- the value of the
bindsrecord component
-
bindName
Returns the value of thebindNamerecord component.- Returns:
- the value of the
bindNamerecord component
-
pureName
Returns the value of thepureNamerecord component.- Returns:
- the value of the
pureNamerecord component
-