Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:20
Show Gist options
  • Select an option

  • Save dacr/e3bf7dd4eb3ad26c5ccd6a4e48de4ee5 to your computer and use it in GitHub Desktop.

Select an option

Save dacr/e3bf7dd4eb3ad26c5ccd6a4e48de4ee5 to your computer and use it in GitHub Desktop.
ocaml first example script / published by https://github.com/dacr/code-examples-manager #40d0ed8e-b601-4f19-a13a-aeb683895331/366087b621528525a358399f315d127e3e17e14c
#!/usr/bin/env utop
(*
// summary : ocaml first example script
// keywords : ocaml, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : 40d0ed8e-b601-4f19-a13a-aeb683895331
// created-on : 2022-09-24T11:57:31+02:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : utop $file
*)
let x= 42;;
Printf.printf "the response is %d\n" x ;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment