Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Are int and (int) two different types in FunC?

Do I get it right that FunC treats int and (int) (a tuple with only one integer in it) as two different types even though they both are really integers? I have two integer arguments that I am afraid to accidentally mix up, so would using these two different types for them prevent such a mistake?


This question was imported from Telegram Chat: https://t.me/tondev/112430

Votes Newest

Answers


The return type can be any atomic or composite type, as described in the Types section above. For example, the following are valid function declarations:

Note that from a low-level perspective, value (2, (3, 9)) of type (int, (int, int)) and value (2, 3, 9) of type** (int, int, int)**, are represented in the same way as three stack entries 2, 3 and 9.

https://ton.org/docs/develop/func/types#tensor-types

  
  
wiki
Posted one year ago
17K Views
1 Answer
one year ago
one year ago
Tags