Julia equivalent to "not" in python

Viewed 485

I am new to Julia. I cannot find how to use a "not" operator as in python. What I want to do: run a while loop as long as a function returns false.

In python I would do:

while not function(foo, bar):
    do_something

How would you achieve this effect in Julia?

1 Answers

It's the standard !:

while !func(foo, bar)
    do_something
end
Related