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
Profile picture
Alex Kim
Moderator
0 Questions, 1 Answer
  Active since 20 February 2023
  Last activity one year ago

Reputation

30 + 10 this April
2 How to concatenate strings in FunC?

The string type in FunC is represented by slice, so you need to create new cell and put substrings in it:

	slice charA = "A"; ;; char A
	slice charB = "B"; ;; char b

	;; create cell with "ABBA" string in it
	cell cellABBA =
		begin_cell()
			.store_slice(charA)
			.store_slice(charB)
			.store_slice(charB)
			.store_slice(charA)
		.end_cell();

	;; convert cell to slice (or simply use the cell itself)
	slice stringABBA = cellABBA.begin_parse();

	~strdump(s...
one year ago