Writing a function that requires 1 argument, when using it julia thinks I put 2 in

The “or” operator you are probably expecting is || (not a single |).

That is another type of “or” operator, which one rarely uses.

2 Likes