lets

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If

func If[T any](condition bool, trueVal, falseVal T) T

If[T] simulate ternary conditional operator (condition ? trueVal : falseVal)

func Val added in v0.14.0

func Val[T any](v T, s ...T) T

Val[T] return s[0] if s is give or else return v

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL