zeek/auxil/spicy/doc/programming/examples/_unit-params-vector.spicy
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

12 lines
240 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
type Bar = unit(mult: int8) {
x: int8 &convert=($$ * mult);
on %done { print self.x; }
};
public type Foo = unit {
x: int8;
y: Bar(self.x)[];
};