FlatLang / Flat

(Deprecated) Soon-to-be legacy Flat compiler all in one
6 stars 0 forks source link

Add support for lambdas in ternary statements. #349

Open BSteffaniak opened 7 years ago

BSteffaniak commented 7 years ago

e.g.

public contains(Type value, Bool referenceValue = true) -> Bool {
    return any(referenceValue ? { _ == value } : { _.equals(value) })
}