This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ternary | |
type operatorIf[T comparable] struct { | |
condition bool | |
value T | |
elseIf *operatorIf[T] | |
elseValue T | |
} | |
func If[T comparable](condition bool) *operatorIf[T] { |