Skip to content

Instantly share code, notes, and snippets.

@cemerick
Created February 14, 2019 17:36
Show Gist options
  • Save cemerick/a2389e792ee2349ae7b6fd772c5ea9b8 to your computer and use it in GitHub Desktop.
Save cemerick/a2389e792ee2349ae7b6fd772c5ea9b8 to your computer and use it in GitHub Desktop.
open Containers
let _ = let lst = [1;2;3] in
let open Sequence in
let open Format in
let s = of_list lst in
if not @@ is_empty s
then print_endline "not empty";
Format.printf "%a" (List.pp pp_print_int) (to_list s)
(*
not empty
1, 2, 3
*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment