Jump to content

History variables: Difference between revisions

Changed interface to "initHistoryVar".
(Changed interface to "initHistoryVar".)
Line 1,535:
hist: seq[T]
 
funcffunc initHistoryVar[T](value: T = T.default): HistoryVar[T] =
## Initialize a history variable with default value (binary zero).
result.hist.add T.default
 
func initHistoryVar[T](value: T): HistoryVar[T] =
## Initialize a history variable with given value.
result.hist.add value
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.