nim_iterator_stream_experiment/utils/unit

    Dark Mode
Search:
Group by:

The Unit type from functional programming.

It can be seen as the void type but with a single value in it.

Types

Unit = tuple[]
  Source Edit

Funcs

func unit(): Unit {...}{.raises: [], tags: [].}
  Source Edit
func default(T: typedesc[Unit]): Unit
  Source Edit
func default[T: Unit](): Unit
  Source Edit
func doNothing[T](_: T): Unit
  Source Edit