Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
What is => in programming?
Can anyone tell me what does => mean? Is it an assignment of value? How does it differ from an equals operator?
Here is an example:
'guild' => array(
'index' => 'List Guilds',
'export' => 'Export Guild Emblems'
)
Here is an example:
liftM2 :: Monad m => (a -> b -> c) -> m a -> m b -> m c
liftM2 op mx my = do
x <- mx
y <- my
return (op x y)
I don't think it's a logical operator because it assigns a value. It would be better if you can also tell me the difference between => and ->
Thank you!
4 Answers
- Afaan BilalLv 48 years agoFavorite Answer
The above answers are wrong. => is not equal or greater but only an assignment operator to assign values to elements of an array.
The comparison operator for greater or equal is >= and NOT =>
Hope it helps!
Source(s): XP! - SilentLv 78 years ago
Well, of course it depends on the language we're talking about. What language are we talking about?
=> is used in some languages (like PHP) to define relationships in an associative array. It looks like that may be what's going on in your first example. But again, it's hard to say for sure without knowing what language this is.
It's not a logical operator in any language I've ever seen. The "greater than or equals" operator the other answerers are referring to is almost always >=, not =>.
- 8 years ago
Equal or greater than.
Some examples of TRUE statements include:
6 => 5
5 => 5
And on the contrary, some examples that are FALSE include
5 => 6
7 => 9
Thus =< is equal to or less than.
- GrayLv 48 years ago
From your example
'guild' => array(
It means if 'guild' is equal to (=) or greater than (>) array(