This is a snippet from some pseudocode for a sorting algorithm. In it, the symbol ← is used to denote assignment, for example for the variable done. However, in the while loop the statement done:= false is written. I would assume it is also an assignment statement but I suspect it means somethings else, or perhaps extra, since if not, the ← would have simple be used again.
Algorithm MyAlgorithm(A, n)
Input: Array of integer containing n elements
Output: Possibly modified Array A
done ← true
j ← 0
while j ≤ n - 2 do
if A[j] > A[j + 1] then
swap(A[j], A[j + 1])
done:= false
j ← j + 1
:=would denote "redefine", but it's clear thatjis redefined using the arrow below. In general,:=is an assignment in pseudocode; to be honest, I've never seen the arrow in actual pseudocode. – Eric Jan 17 at 17:09←as assignment (and use it myself) quite a lot. As long as people are consistent, it doesn't really matter much, as the given pseudocode obviously isn't. – Pål GD Jan 17 at 17:17:=, though they mention that:=is "more common". – Eric Jan 17 at 17:21