From 27d25fb84954f429419533a0d9d7fe1046d6635e Mon Sep 17 00:00:00 2001 From: Sam Vervaeck Date: Thu, 10 Aug 2023 15:18:37 +0200 Subject: [PATCH] Make example in README.md copy-pastable --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6031ce6e1..34860a67a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,11 @@ Bolt 💬 Got some questions or feedback? Just open an issue and we'll be glad to respond! -![sample code](https://github.com/boltlang/bolt/blob/main/assets/preview-fac.png?raw=true) +```ocaml +let fac = match. + 0 | 1 => 1 + k => k * fac (k-1) +``` Bolt is a new strictly-evaluated functional programming language in the making that aims to make writing complex applications dead-simple. It ships with some