Sequence StaticAddI128

std/arithmetic/scalar/i128::StaticAddI128


Parameters

↳ var value: i128 = 0

Inputs

value: Stream<i128>

Outputs

↦ value: Stream<i128>


Add a static value to i128.

Every number passed through the stream get value added.

use std/arithmetic/scalar/i128::StaticAddI128

sequence Foo()
  input  in:  Stream<i128>
  output out: Stream<i128>
{
    StaticAddI128(value=5)

    // in is increased by 5 and send to out
    Self.in -> StaticAddI128.value,value -> Self.out
}