Home >Backend Development >PHP Tutorial >javascript - Please help, what is the programming language with <-?

javascript - Please help, what is the programming language with <-?

WBOY
WBOYOriginal
2016-08-29 08:50:53942browse

What programming language is this below? It looks like js, but I have never seen it in js<-

<code>GetSinaURL <- function(code = '600000', year = '2016', quarter = '1', index = FALSE) {
  sina.url <- ''
  if (index) {
    sina.url <- paste0('http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_MarketHistory/stockid/', code, '/type/S.phtml?year=', year, '&jidu=', quarter)
  } else {
    sina.url <- paste0('http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_FuQuanMarketHistory/stockid/', code, '.phtml?year=', year, '&jidu=', quarter)
  }
  return(sina.url)
}</code>

Reply content:

What programming language is this below? It looks like js, but I have never seen it in js<-

<code>GetSinaURL <- function(code = '600000', year = '2016', quarter = '1', index = FALSE) {
  sina.url <- ''
  if (index) {
    sina.url <- paste0('http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_MarketHistory/stockid/', code, '/type/S.phtml?year=', year, '&jidu=', quarter)
  } else {
    sina.url <- paste0('http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_FuQuanMarketHistory/stockid/', code, '.phtml?year=', year, '&jidu=', quarter)
  }
  return(sina.url)
}</code>

Googled it and found the original text.
R grabbed the historical price of A shares and wrote it into MySQL

Is it R voice?

F# uses <- as the assignment operation, and I don’t know the rest.

Golang has this symbol, but there is no such thing as function

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn