F# if not condition

if you consider that not is also a function, then you can pipe your condition into it to avoid parenthesis like so:

if not <| condition param1 param2 then ...

reason being is if your condition function takes arguments, you don’t need to do

not (condition param1 param2) 

it’s probably a little cleaner to do it the first way since it seems f# is in favor of pipes instead of parenthesis for operator precedence.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)