Why some functions ends with an ! (an exclamation point) in Julia?

Viewed 768

Some function(s) in Julia ends with an exclamation point e.g. pop!, sort! etc.

1 Answers

By convention, function names ending with an exclamation point (!) modify their arguments. Some functions have both modifying (e.g., sort!) and non-modifying (sort) versions.

more can be found here:

Related