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

[REBOL] A hard question

From: lmecir::mbox::vol::cz at: 3-Feb-2001 20:03

The task is to create a function HARD, that is a Normal Argument Passing function (i.e. nor a Fetched Argument Function, neither an Unevaluated Argument Function) and takes two arguments, ARG1 and ARG2. HARD is not required to do any argument checking, moreover, you can assume, that the supplied arguments are really the data they are supposed to be. ARG1 is a Normal Argument Passing Function taking exactly one argument. ARG2 is a block of length 1. The function HARD shall do exactly the same thing, as the function ARG1 would do if used with the first element of ARG2 as its argument. Moreover, you can assume, that the first element of ARG2 is a correct argument to ARG1. Any trials? Regards Ladislav