Crates.io | supermemo2 |
lib.rs | supermemo2 |
version | 1.0.3 |
source | src |
created_at | 2019-10-06 12:31:08.66799 |
updated_at | 2019-12-26 06:23:48.640237 |
description | A simple crate that implements the supermemo2 spaced repetition algorithm. |
homepage | https://github.com/joshua-cooper/supermemo2 |
repository | https://github.com/joshua-cooper/supermemo2 |
max_upload_size | |
id | 170368 |
size | 7,038 |
This crate implements the core components of the supermemo2 spaced repetition algorithm.
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);
}