**Packages**- base
- regex-base
- regex-posix

**Did you mean: **Int -> RequestMethod -> RequestMethod

replicateM n act performs the action n times, gathering the results.

replicate n x is a list of length n with x the value of every element. It is an instance of the more general Data.List.genericReplicate, in which n may be of any integral type.

The genericReplicate function is an overloaded version of replicate, which accepts any Integral value as the number of repetitions to make.

scanl is similar to foldl, but returns a list of successive reduced values from the left:
> scanl f z [x1, x2, ...] == [z, z `f` x1, (z `f` x1) `f` x2, ...]
Note that
> last (scanl f z xs) == foldl f z xs.

Replace all locations in the input with the same value. The default definition is fmap . const, but this may be overridden with a more efficient version.

Monadic fold over the elements of a structure, associating to the left, i.e. from left to right.

The foldM function is analogous to foldl, except that its result is encapsulated in a monad. Note that foldM works from left-to-right over the list arguments. This could be an issue
commutative.
> foldM f a1 [x1, x2, ..., xm]
==
> do
> a2 <- f a1 x1
> a3 <- f a2 x2
> ...
> f am xm
If right-to-left evaluation is required, the input list should be reversed.

Monadic fold over the elements of a structure, associating to the right, i.e. from right to left.

(=~~) :: (RegexMaker Regex CompOption ExecOption source, RegexContext Regex source1 target, Monad m) => source1 -> source -> m target