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
Does FunC allow to call functions recursively?

Is it possible to call a function in a recursive way in FunC? If so, how exactly should I do it? I haven't found it in the FunC documentation, is it covered there?


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

Votes Newest

Answers


Yes, you can make recursive calls in FunC. And it is basically the same as in other programming languages.
Simple example of recursive pow function:

int pow (int num, int base) {
    if (base == 0) {
		    return 1;
		}
	  if (base % 2 == 1) {
        return pow(num, base - 1) * num;
		}
    int sqr = pow(num, base / 2);
    return sqr * sqr;
}
2
2
Posted one year ago
Daniil Sedov
233 × 6 Administrator
15K Views
1 Answer
one year ago
one year ago
Tags