Skip to content

Commit

Permalink
conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Wren H committed Sep 22, 2024
2 parents c0edeaa + 4862a7c commit db5aa81
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Here's a hello world program in khasm:
```ocaml
import Stdlib
fun main (): unit =
Stdlib.print "Hello, World!"
println "Hello, World!"
```

The classic recursive fibonacci:
Expand Down Expand Up @@ -61,12 +61,11 @@ fun streaming_add_two (l: List int): Stream int =
Traits? You bet!
```ocaml
trait Show a =
fun show : a -> String
fun show : a -> string
end
(* slight sugar for `impl Show Int` *)
impl Show for Int =
fun show (x: Int): String =
impl Show int =
fun show (x: int): string =
int_to_string x
end
Expand Down

0 comments on commit db5aa81

Please sign in to comment.