Skip to content

Instantly share code, notes, and snippets.

@zindel
Created January 3, 2019 09:00
Show Gist options
  • Save zindel/31c889ee348af9830d973b93daad2fcb to your computer and use it in GitHub Desktop.
Save zindel/31c889ee348af9830d973b93daad2fcb to your computer and use it in GitHub Desktop.
let resolveDeps = fix (fun recur ->
let%bind _js, reqs = File.compute >>> parse in
let%bind deps = return reqs ||> resolve in
let%bind depsOfDeps = return deps ||> recur in
return (deps @ List.flatten depsOfDeps)
) in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment