Skip to content
/ cubika Public

A functional programming language with dependent types.

Notifications You must be signed in to change notification settings

luisvgs/cubika

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

           __   _ __       
 ______ __/ /  (_) /_____ _
/ __/ // / _ \/ /  '_/ _ `/
\__/\_,_/_.__/_/_/\_\\_,_/ 
                           

A (semi) functional programming language with dependent types.

Examples

Pattern matching

let foo (a : Type) : Bool =
    match a with
    | 2 -> True
    | _ -> False 
in foo 2 // returns True.

Dependent identity function

let id (A : Type) (x : A) : A = x;
let Bool : Type;
False : Bool;
id Bool False; // evaluates to False.

Binary operations

let sum (a : Nat) (b : Nat) : Nat =
    + a b
in sum 3 5; // evaluates to 8.

About

A functional programming language with dependent types.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published