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
Back to post

Revisions 3

one year ago
Jeremy
394 × 5 Administrator
Can I dynamically add refs into the builder type?
Can I dynamically add refs into the builder type?
I have function like this: ```clike () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress = q.store_slice(destination_address); builder qRefs = qSliceDestinationAddress.store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ); cell endedQ = qRefs.end_cell(); set_data(endedQ); } ``` Сan I write a function like this? ```clike () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress = q.store_slice(destination_address); builder qRefs = qSliceDestinationAddress; int x = 0; while (x < 5) { x += 1; qRefs.store_ref(begin_cell().store_uint(0, 1).end_cell()); } cell endedQ = qRefs.end_cell(); set_data(endedQ); } ```
I have function like this: ```c-like () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress = q.store_slice(destination_address); builder qRefs = qSliceDestinationAddress.store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ); cell endedQ = qRefs.end_cell(); set_data(endedQ); } ``` Сan I write a function like this? ```c-like () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress = q.store_slice(destination_address); builder qRefs = qSliceDestinationAddress; int x = 0; while (x < 5) { x += 1; qRefs.store_ref(begin_cell().store_uint(0, 1).end_cell()); } cell endedQ = qRefs.end_cell(); set_data(endedQ); } ```
#func
#func
Can I dynamically add refs into the builder type?
Dynamically add refs into builder type
I have function like this: ```c-like () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress = q.store_slice(destination_address); builder qRefs = qSliceDestinationAddress.store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ); cell endedQ = qRefs.end_cell(); set_data(endedQ); } ``` Сan I write a function like this? ```c-like () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress = q.store_slice(destination_address); builder qRefs = qSliceDestinationAddress; int x = 0; while (x < 5) { x += 1; qRefs.store_ref(begin_cell().store_uint(0, 1).end_cell()); } cell endedQ = qRefs.end_cell(); set_data(endedQ); } ```
I have function like that: ```func () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress = q.store_slice(destination_address); builder qRefs = qSliceDestinationAddress.store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ); cell endedQ = qRefs.end_cell(); set_data(endedQ); } ``` Сan I use a function something like this? ```func () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress = q.store_slice(destination_address); builder qRefs = qSliceDestinationAddress; int x = 0; while (x < 5) { x += 1; qRefs.store_ref(begin_cell().store_uint(0, 1).end_cell()); } cell endedQ = qRefs.end_cell(); set_data(endedQ); } ```
#func
#func
one year ago
Original
Dynamically add refs into builder type

I have function like that: ```func () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress = q.store_slice(destination_address); builder qRefs = qSliceDestinationAddress.store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ) .store_ref( begin_cell().store_uint(0, 1).end_cell() ); cell endedQ = qRefs.end_cell(); set_data(endedQ); } ``` Сan I use a function something like this? ```func () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress = q.store_slice(destination_address); builder qRefs = qSliceDestinationAddress; int x = 0; while (x < 5) { x += 1; qRefs.store_ref(begin_cell().store_uint(0, 1).end_cell()); } cell endedQ = qRefs.end_cell(); set_data(endedQ); } ```
#func