supermemo2

Crates.iosupermemo2
lib.rssupermemo2
version1.0.3
sourcesrc
created_at2019-10-06 12:31:08.66799
updated_at2019-12-26 06:23:48.640237
descriptionA simple crate that implements the supermemo2 spaced repetition algorithm.
homepagehttps://github.com/joshua-cooper/supermemo2
repositoryhttps://github.com/joshua-cooper/supermemo2
max_upload_size
id170368
size7,038
Josh Cooper (joshua-cooper)

documentation

README

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);
}
Commit count: 13

cargo fmt