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
How to measure the length of a Lisp-style list?

FunC standard library includes Lisp-style lists. TON documentation describes them and their basic functionality like adding an element to the beginning of a list, but there's no mention of measuring the length of a list. How to do it?


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

  
  
Posted one year ago
Votes Newest

Answers


Finding the length of a lisp-style list is a manual process. You have to traverse the list. As such, it most likely doesn't worth it in a smart contract context, so it's better to keep a separate counter variable, whenever you're going to need to use length.

  
  
Posted one year ago