Update assignment 8

This commit is contained in:
Minseong Jang
2022-10-20 13:09:40 +09:00
parent a3bc683743
commit 0ab03a0367
2 changed files with 2 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
/// Returns an anonymous function that applies the given function `f` for `n` times.
///
/// For instance, `repeat(3, f)(x)` roughly translates to `f(f(f(x)))`.
pub fn repeat<T, F: FnMut(T) -> T>(n: usize, f: F) -> impl FnMut(T) -> T {
pub fn repeat<T, F: FnMut(T) -> T>(n: usize, mut f: F) -> impl FnMut(T) -> T {
todo!();
f // This line has been added to prevent compile error. You can erase this line.
}

View File

@@ -1,6 +1,7 @@
//! KAIST CS220 Assignments.
#![allow(dead_code)]
#![allow(unused_mut)]
#![allow(unreachable_code)]
#![allow(unused_variables)]