Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems in section: Loops and Recursions #2239

Open
geohuz opened this issue Mar 17, 2024 · 0 comments
Open

Problems in section: Loops and Recursions #2239

geohuz opened this issue Mar 17, 2024 · 0 comments

Comments

@geohuz
Copy link

geohuz commented Mar 17, 2024

  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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant