Loading ...
Sorry, an error occurred while loading the content.

Messages List

14834

List comprehensions in OCaml....????

*Hello all,* *I've been playing around with Haskell lately, and I must I really like its list comprehensions. Does OCaml have something equivalent?* *I
Douglas Lewit
Dec 2, 2017
#14834
 
14833

Re: Zed and Utop for Ocaml 4.06 ???

Hi Gabriel, Yes, I was able to use opam switch to switch over to OCaml 4.0.5, which of course had to download and recompile, but that didn't take very long. I
Douglas Lewit
Nov 10, 2017
#14833
 
14832

Re: Zed and Utop for Ocaml 4.06 ???

Out of curiosity, I looked for "utop" or "zed" in the homebrew packages list, but I didn't find them. I suppose that you install them through OPAM, but this
Gabriel Scherer
Nov 5, 2017
#14832
 
14831

Re: Zed and Utop for Ocaml 4.06 ???

It looks like the homebrew maintainers decided to upgrade the compiler too soon, while many of the packages in the ecosystem are not ported to work on 4.06
Gabriel Scherer
Nov 5, 2017
#14831
 
14830

Zed and Utop for Ocaml 4.06 ???

Hi everyone, I just ran a brew update and brew upgrade on my Mac laptop. So brew updated my opam version and also my ocaml version. OCaml got updated to
Douglas Lewit
Nov 5, 2017
#14830
 
14829

Re: Very confused about this.

Hi, Just create the functions first, and then set it into your type, just like this: # let rec member x ls = match ls with ... if x = head then true else
Florent Monnier
Jul 24, 2017
#14829
 
14828

Very confused about this.

Hi everyone, So I'm working on this Klotski project, and I have to implement the following type: type ('a, 'set) set_operations = { empty : 'set ; mem : 'a ->
Douglas Lewit
Jul 24, 2017
#14828
 
14827

Re: What does '_a mean?

Hi, Zitat von "Douglas Lewit delewit@... [ocaml_beginners]" (Sun, 7 May 2017 01:37:00 -0500) ... [...] ... compiling
Oliver Bandel
Jun 24, 2017
#14827
 
14826

Re: The Klotski Problem from last year's MOOC.

My code copied okay--I think--but it didn't paste that well! :-( Oh well. If anyone can provide some feedback, that's great. IF not.... no worries.
Douglas Lewit
Jun 21, 2017
#14826
 
14825

The Klotski Problem from last year's MOOC.

Hi everyone, Was anyone in the group a member of that OCaml MOOC last year that was hosted by OCaml Pro and Universite Paris Diderot? Anyhow, do you recall
Douglas Lewit
Jun 21, 2017
#14825
 
14824

Re: My utop disappeared!

If you run just "opam config env" you will see that it generates a bunch of shell variable redefinitions that "eval" then applies to your shell -- it is not
Gabriel Scherer
May 31, 2017
#14824
 
14823

Re: My utop disappeared!

It works (the output of eval $(opam config env) is empty though) ! Thank you very much.
doylejonathan58
May 31, 2017
#14823
 
14822

Re: My utop disappeared!

$(opam config var bin)/utop should work no matter what your PATH setting is. (Have you tried running "eval $(opam config env)"? My command in my first email
Gabriel Scherer
May 31, 2017
#14822
 
14821

Re: My utop disappeared!

I really meant "opam update utop". If I try "opam upgrade utop", the terminal answers (correctly I think) "Already up-to-date". I also tried opam remove utop
doylejonathan58
May 31, 2017
#14821
 
14820

Re: My utop disappeared!

I reported the confusion you had with `opam update` upstream: https://github.com/ocaml/opam/issues/2951 Also, note that there is now a webforum to ask
Gabriel Scherer
May 31, 2017
#14820
 
View First Topic Go to View Last Topic