review

fun review(state: FsrsState?, rating: FsrsRating, elapsedDays: Double, sameDay: Boolean): FsrsState

Reviews a flashcard and calculates its new state based on the provided parameters.

Return

The new state of the flashcard after applying the FSRS algorithm.

Parameters

state

The current state of the flashcard, or null if it's a new card.

rating

The user's rating of their recall performance.

elapsedDays

The number of days since the last review.

sameDay

A boolean indicating if the review is happening on the same day as the last review.