Menu

Built-in operators Log in to Edit

Brandon Barker jeffrey

This page lists built-in operators for ATS.

  • => - Similar to =, but used to define the body of a lambda function or a case expression.
  • =>> - Similar to =>, but indicates to the typechecker that this clause needs to be typechecked under the sequentiality assumption that the given value that matches it does not match the pattern guards associated with any previous clauses. For more information, see Sequentiality of Pattern Matching
  • # - Allows static variables present in a function return type to be used in the statics of the function's arguments. For example, if we want b from the return type to be in the scope of the statics in the arguments, (that is, b in opt (a,b)):

    fun{a:t@ype}
    linset_choose (
      xs: !set a, x: &a? >> opt (a, b)
    ) : #[b:bool] bool (b)
    

Related

Wiki: Home

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.