Sequence StaticAddI64

std/arithmetic/scalar/i64::StaticAddI64


Parameters

↳ var value: i64 = 0

Inputs

value: Stream<i64>

Outputs

↦ value: Stream<i64>


Add a static value to i64.

Every number passed through the stream get value added.

use std/arithmetic/scalar/i64::StaticAddI64

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

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