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

[REBOL] Re: Can I define an anti function?

From: lmecir:mbox:vol:cz at: 24-Feb-2004 16:02

Anton Rolls napsal(a):
>What is the purpose and utility of such a function ? > >Anton. > >>{Suppose f is a function returning a boolean.Is there a way of defining >>a function anti, which, when given f, returns "not f"? >>
This is a higher-order function. This style of programming is known as Functional Programming and some use it in Rebol - cf. Map as an example. Otherwise this specific case is probably just a homework and I brought it here just to show you how some people judge Rebol or other programming languages. -L