Sequence StaticAddI8

std/arithmetic/scalar/i8::StaticAddI8


Parameters

↳ var value: i8 = 0

Inputs

value: Stream<i8>

Outputs

↦ value: Stream<i8>


Add a static value to i8.

Every number passed through the stream get value added.

use std/arithmetic/scalar/i8::StaticAddI8

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

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