Int -> Get DataEntry -> Get [DataEntry]
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.
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, ...]
> last (scanl f z xs) == foldl f z xs.
scanr is the right-to-left dual of scanl. Note that
> head (scanr f z xs) == foldr 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
> foldM f a1 [x1, x2, ..., xm]
> 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.