dummy-link

Readme

ValueOrDefault

Build Status

usage

@value_or_default(x,y) returns x if x is defined and returns y otherwise. When this returns x, y is will not be evaluated.

using ValueOrDefault

x = 42
y = 137

@assert @value_or_default(x, y) == x
@assert @value_or_default(undef_variable, y) == y

First Commit

10/09/2014

Last Touched

almost 5 years ago

Commits

3 commits