Loading ...
Sorry, an error occurred while loading the content.

2632Help, in creating Function Patterns

Expand Messages
  • kiho841203
    May 15, 2004
      Below is a function pattern in a language called Haskell:

      func :: Integer -> Integer -> Integer
      func a b = mod (a^(b-1)) b

      func2 :: Int -> Int -> Int
      func2 a b = a + b

      And I was trying to get the function pattern to work in EP2 I tried
      looking through help and I got as far as:

      Fn Pattern: ^[a-z]\ *\:\:\ [^;]*

      And it is not working. Its very hard to understand the Function
      pattern, so can I get some help from you? If you have Spare time on
      your hands, please help me.

      Thank you.