简体   繁体   English

Scala中运算符〜>的含义?

[英]Meaning of operator ~> in Scala ?

I'm trying to understand if this operator ( ~> ) means any in Scala or if it's domain specific? 我试图理解这个运算符( ~> )是否表示Scala中的任何一个或者它是否特定于域?

I'm trying to understand the Scala code here. 我试图在这里理解Scala代码。 http://nlp.stanford.edu/software/tmt/tmt-0.4/examples/example-1-dataset.scala http://nlp.stanford.edu/software/tmt/tmt-0.4/examples/example-1-dataset.scala

~> has no special meaning in scala. ~>在scala中没有特殊含义。 In this case, it is just a method defined by ScalaNLP Breeze (See http://www.scalanlp.org/api/#breeze.text.tokenize.Tokenizer ) 在这种情况下,它只是ScalaNLP Breeze定义的方法(参见http://www.scalanlp.org/api/#breeze.text.tokenize.Tokenizer

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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