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

[REBOL] Re: Annabelle Content Management System

From: sabufrancis::rediffmail::com at: 14-Sep-2007 10:24

Hi Thanks for the code. That would be useful. Though I did not understand how 'def works (Maybe it is in the scripts?). 'findall' does that and something more: It can walk through possible logical alternatives and present those as a list, as can be seen in this example: cat("tammy"). cat("fatcat"). cat("garfield"). .... .... findall(A,cat(A),Alst) The above findall invocation will yield the following Alst= ["tammy","fatcat","garfield"] In the above example the facts about cats were presented in the code. In usual use, the programmer would not know what facts are being collected . findall will automatically do the list collection. 'findall' can also take parts of a fact individually and make them into a list, etc. Maybe if you give an additional argument to the 'every func which is actually a function call, the above things can be met. Something like how 'sort works Regards Sabu Francis