ocaml.org icon indicating copy to clipboard operation
ocaml.org copied to clipboard

Problems in section: Loops and Recursions

Open geohuz opened this issue 1 year ago • 0 comments

  1. Can't load unix.cma, in code:
#load "unix.cma";;

Cannot find file unix.cma.

I figured out by using "utop -I +unix",

  1. Unbound constructor File, in code:
# let rec string_of_filesystem fs =
  match fs with
  | File filename -> filename ^ "\n"
  | Directory fs_list ->
      List.fold_left (^) "" (List.map string_of_filesystem fs_list);;

Error: Unbound constructor File

I can't not find a type definition for File, please somebody review the documentation and fix the errors?

Thanks!

geohuz avatar Mar 17 '24 10:03 geohuz