<quartz>
d_bot_: Well, it's basically Kaden's algorithm ( I think I spelt that right), but I'm not sure I need to use that specific algorithm exactly
<quartz>
Basically, iterate through the array, check if the List.hd l is positive. If it is, somehow increment a counter
<quartz>
But that's the problem, you can't store variables and change their values in this language
<quartz>
I mean, without records.
<quartz>
So how am I to do this?
<d_bot_>
<Et7f3> If you need to execute a snippet at shell startup their is a special file that is executed like ~/.bashrc or ~/.zshrc sometime it is ~/.bash_profile. This is the generic answer that work for all software. opam init seem to offer to modify it.
<companion_cube>
{x with y=z}
<quartz>
Everything is an expression... well OK... what good does this do me
<companion_cube>
That returns a new record
<quartz>
companion_cube: I'm sorry I've no idea what that means
<d_bot_>
<NULL> Do you really need to mutate variables ? If so, use references
<companion_cube>
Look it up, you need to learn a language to use it
<companion_cube>
Record update, in the manual I think
<quartz>
NULL: Well I'm not sure how else I'd do it.
<quartz>
I need to store the longest number of consecutive + or - numbers in a list.... so that counter has to go somewhere right?
<d_bot_>
<NULL> You can using recursion, where an additional argument stores that "variable"
<d_bot_>
<NULL> I don't think it's bad if you write it the imperative way at first, use references for that
kaph has quit [Ping timeout: 256 seconds]
<quartz>
OK yeah recursion works for like everything in OCmal
<d_bot_>
<NULL> It can work for pretty much the same in other languages, it's just that OCaml makes it the better option
<d_bot_>
<NULL> But again, you can learn the language before learning how to use recursion
Techcable has joined #ocaml
kaph has joined #ocaml
olle has quit [Ping timeout: 252 seconds]
quartz has quit [Quit: WeeChat 3.4]
Haudegen has quit [Ping timeout: 240 seconds]
<d_bot_>
<jman> Does anyone know how to code in OCaml on IntelliJ using the ReasonML plugin? @NULL
<d_bot_>
<jman> I installed the plug0in. I don't see a way to use it anywhere. I wanat to code in OCaml. How do I use the intelliJ plugin I installed?
<d_bot_>
<NULL> Why ping me ? I have no idea, I don't use this IDE
<d_bot_>
<darrenldl> @pilothole i dont think i understand the "model didnt have problems before clickjacking" part, could you elaborate?
waleee has quit [Ping timeout: 240 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
adanwan_ has quit [Ping timeout: 240 seconds]
adanwan has joined #ocaml
bobo has quit [Ping timeout: 245 seconds]
spip has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]