<GreyFaceNoSpace>
i have a problem in line 20 of the function run
<GreyFaceNoSpace>
but don't really know how to fix it
<thizanne>
GreyFaceNoSpace: I don't have much time, but you should probably describe the "problem" rather than waiting for people to try and understand it by themselves
<GreyFaceNoSpace>
thizanne, oh sorry
<thizanne>
(that would probably increase the probability of you getting an answer)
<GreyFaceNoSpace>
i created an init function which initializes the graph for bellman fors algorithm. the function returns an assoc list with (node , (distanceToSource, Predecessor)) tuples
<GreyFaceNoSpace>
inside the run function i try to implement the algorithm through folding the list of edges
<GreyFaceNoSpace>
and retrieving the info about each vertex from the assoc list returned by init
<GreyFaceNoSpace>
but in line 20 i get an error which says: expression has type 'a list but an expression of type 'b->'c->'d->'e->'f was expected.
<thizanne>
looks like your if count >= 0 at the top of the function has no corresponding else
<thizanne>
also, your let run ... = in ... is wrong
<thizanne>
(could work if you type it in the toplevel, but that's not how let works in ocaml)
nopf has joined #ocaml
<thizanne>
I must go, sorry for not being able to help more
<thizanne>
but you should at least fix your else problem
<companion_cube>
rgrinberg: so I'm releasing sequence 1.0, which uses jbuilder!
<GreyFaceNoSpace>
ok thanks
<companion_cube>
"installability check: new broken package" meh, camelus, y u not happy?!
kerrhau has quit [Quit: bye!]
kerrhau has joined #ocaml
Haudegen has quit [Remote host closed the connection]
pierpa has joined #ocaml
jbrown has quit [Ping timeout: 255 seconds]
zolk3ri has quit [Quit: leaving]
an-tuan has quit [Quit: WeeChat 2.0]
kristof has joined #ocaml
<kristof>
anyone here using merlin with vscode? merlin isn't giving me completions for other modules, which is odd
<kristof>
I've got main.ml and some other file b.ml in the same src/ directory
<kristof>
in / I have .merlin with S src/**
<kristof>
unfortunately merlin won't recognize B. file names
kakadu has quit [Remote host closed the connection]
<kristof>
Oh, yeah, I tried someone else's project and merlin also breaks. It looks like the merlin plugin for vscode is a bit broken :(