7 releases (4 stable)
1.0.3 | Dec 26, 2019 |
---|---|
0.2.0 | Nov 19, 2019 |
0.1.1 | Oct 10, 2019 |
0.1.0 | Oct 6, 2019 |
#1428 in Algorithms
7KB
105 lines
supermemo2
This crate implements the core components of the supermemo2 spaced repetition algorithm.
Examples
use supermemo2::Item;
pub fn main() {
let item = Item::default();
let interval = item
.review(4)
.unwrap()
.review(3)
.unwrap()
.review(5)
.unwrap()
.interval();
assert_eq!(interval, 15);
}
lib.rs
:
supermemo2
This crate implements the core components of the supermemo2 spaced repetition algorithm.
Examples
use supermemo2::Item;
pub fn main() {
let item = Item::default();
let interval = item
.review(4)
.unwrap()
.review(3)
.unwrap()
.review(5)
.unwrap()
.interval();
assert_eq!(interval, 15);
}