Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] another sug*estion? /soft seeking ...

From: petr::krenzelok::trz::cz at: 28-Nov-2000 11:11

Hi, I am not sure If I am alone missing the so called soft-seeking capability in REBOL? What's the point? Let's assume the following series: blk: [1 2 3 6 7 8 9] find blk 4 returns currently none, but there are cases, when you want to return the nearest value ... e.g. I have block of files built from dates: 20001101 2001102 2001105 ... the problem is - we don't download data on weekends. Then my user selects he wants report starting at 1.1.2000, ending at 30.11.2000. But what if 1.1.2000 is a weekend day? The search in block will not be succesfull ... If some kind of find/soft would exists, it could return the nearest value found ... (the same behavior for /reverse seeking) The problem is our series can contain mixture of various datatypes .... So, is it even achievable? Hope someone understands what I want to express :-) Cheers, -pekr-