examine

    Download zip
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    4 months ago
    Downloads
    48

    No dependencies

    #username/examine

    ExamResult

    pub(all) enum ExamResult {
    Pass
    Fail
    } derive(Show)

    impl Eq for ExamResult

    Student

    pub(all) struct Student {
    id : String
    score : Double
    }

    assert_eq

    fn[A : Eq + Show] assert_eq(value : A, other : A) -> Unit

    count_qualified_students

    fn count_qualified_students(students : Array[Student], is_qualified : (Student) -> ExamResult) -> Int

    is_qualified

    fn is_qualified(student : Student, criteria : Double) -> ExamResult

    Source Files