简体   繁体   中英

What is the meaning of <- in AI?

I've seen in a lot of AI related stuff the symbol <-. For example,

delta <- 0
x <- x + 1

etc.

I always assume its meaning is the same as =(assigment), but probably they have a meaning that's a bit different from assigment, I assume?

Thanks

It's assignment. It removes ambiguity that the "=" symbol adds, because that symbol is often overloaded to test equality.

It makes it very clear that the thing on the left is being assigned the thing on the right, rather than being matched, unified, or otherwise made equal to it.

Nope, that's pretty much it, you're correct in your assumption that it's a basic assignment.

In particular it means "assign value 0 to delta" and "assign value x+1 to x" in your samples.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM