/// Generates a sequence of factorials up to the given number `n`.
///
/// # Arguments
///
/// * `n` - A positive integer representing the number of terms in the factorial sequence.
///
/// # Examples
///
/// ```
/// use numberlab::sequence::factorial::factorial_sequence;
///
/// let sequence = factorial_sequence(6);
/// assert_eq!(sequence, vec![1, 1, 2, 6, 24, 120]);
/// ```