class Prefix implements CSProcess{
ChannelInputInt in;
ChannelOutputInt out;
int first;
public Prefix(int first, ChannelInputInt in,
ChannelOutputInt out){
this.in = in;
this.out = out;
this.first = first;
}
public void run(){
out.write(first);
new Identity(in, out).run();
}
}
Previous slide | Next slide | Back to first slide | View graphic version |