src/funcynim/variables

  Source   Edit

Utilities to manipulate variables.

Useful when composing procedures that use variables with others that do not.

Procs

proc modify[T](self: var T; f: T -> T): var T
  Source   Edit
proc modify[T](self: var T; f: var T -> Unit): var T
  Source   Edit
func read[T](self: var T): T
  Source   Edit
proc write[T](self: var T; value: T): var T
  Source   Edit