<hannes>
null: thank you. I was at https://v2.ocaml.org/manual/intfc.html -- where when I click on "Version 5.1" I end up on the releases page, and from there I found no way to the reference manual
<hannes>
oh ups, there are actually links on the right to the reference manual..
<discocaml>
<._null._> "Lanuage manual", third link in the "Actions" column
<discocaml>
<._null._> "Language manual", third link in the "Actions" column
<hannes>
well, for me hard to navigate, but maybe that's just me
<hannes>
I fully trust in the ocaml.org UX people
<discocaml>
<._null._> No, I can understand your issues, this page is not very clear on what it links to
<discocaml>
<._null._> Especially coming from the manual, you would expect links back to it to be more visible
<hannes>
my personal optimal thing would be a drop-down box on every chapter where you can select the version [certainly only those supported are relevant - i.e. 5.2 and 4.14]
alexherbo2 has joined #ocaml
bibi_ has quit [Quit: Konversation terminated!]
azimut has quit [Ping timeout: 255 seconds]
bibi_ has joined #ocaml
Phandal has quit [Quit: leaving]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
Anarchos has joined #ocaml
waleee has quit [Quit: WeeChat 4.1.2]
alexherbo2 has quit [Remote host closed the connection]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #ocaml
olle has quit [Ping timeout: 264 seconds]
szkl has quit [Quit: Connection closed for inactivity]
<discocaml>
<mirazzzzzz> Hello, we are looking for employees for a cryptocurrency project:
<discocaml>
<mirazzzzzz>
<discocaml>
<mirazzzzzz> * Beta tester ($45/hour)
<discocaml>
<mirazzzzzz> * Moderator ($500/week)
<discocaml>
<mirazzzzzz> * Community Manager ($1000/week)
<discocaml>
<mirazzzzzz> * Web Developer (negotiable)
<discocaml>
<mirazzzzzz> * Investors
<discocaml>
<mirazzzzzz>
<discocaml>
<mirazzzzzz> If you are interested in collaborating, please send me a DM
Anarchos has joined #ocaml
<Anarchos>
Is there a standard lib function (or one-liner) to find the first index of an item in a list not verifying some predicate ?
<discocaml>
<._null._> `List.find (fun x -> not @@ P x) l` ?
<discocaml>
<._null._> `List.find (fun x -> not @@ p x) l` ?
<discocaml>
<._null._> Woops, index
<Anarchos>
yes for find, i had no trouble.
<discocaml>
<._null._> So `find_index` instead (and it's an option)
<discocaml>
<._null._> (Although `Since 5.1`)
<Anarchos>
find_index is not in 4.14
<discocaml>
<._null._> You can make it a one-liner, but it would be rather uglier than implementing it properly
<Anarchos>
._null_. i will look at its implementation in 5.1
<discocaml>
<._null._> `let exception Found of int in try List.filteri (fun x -> if not @@ p x then raise Found i else false); raise Not_found with Found i -> i` for the ugly version
<discocaml>
<._null._> With actually correct syntax: `let find_index p l = let exception Found of int in try ignore @@ List.filteri (fun i x -> if not @@ p x then raise (Found i) else false) l; raise Not_found with Found i -> i`
Tuplanolla has joined #ocaml
<Anarchos>
._null_. thanks
<companion_cube>
fairly sure it's in containers too
bartholin has joined #ocaml
jabuxas has quit [Ping timeout: 264 seconds]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
neiluj has quit [Quit: neiluj]
rgrinberg has joined #ocaml
emp has quit [Ping timeout: 272 seconds]
emp has joined #ocaml
Square3 has quit [Ping timeout: 246 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jabuxas has joined #ocaml
jabuxas has quit [Ping timeout: 255 seconds]
<discocaml>
<Ada> what does `CCString.lines_iter` do
<companion_cube>
iterates on the lines in a string :)
<discocaml>
<Ada> explain like im stupid
<companion_cube>
err, it finds all the '\n' in the string, and calls the given function on substrings in between?
<companion_cube>
if s = "hello\nworld" it'll give you "hello" then "world"
<discocaml>
<Ada> oh my ide just gave me confusing type hints
<discocaml>
<._null._> `List.iter f (String.split_on_char '\n' s)` using Stdlib functions
<discocaml>
<Ada> im about to go to bed haha i feel actually dumb now
waleee has joined #ocaml
Riviera has joined #ocaml
<discocaml>
<._null._> So, not exactly since it constructs an iter instead of explictly iterating
rgrinberg has joined #ocaml
Anarchos has joined #ocaml
* Anarchos
is trying to compile trunk (5.0.3)version with native backend for Haiku 64bits
olle has joined #ocaml
Square3 has joined #ocaml
<Anarchos>
is it possible to tell merlin to erase all the red lines in vim when the whole struct is in error ?
<olle>
Sounds like a vim setting no?
<Anarchos>
olle i guess it is more a merlin command to achieve that, cause red only came after merlinerrorcheck
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<olle>
Anarchos: yeah, but vim contains the code on how to parse the error from merlin, no?
<olle>
Assuming merlin spits out json or text or whatever
<olle>
Try to run merlin from cli and see :)
<Anarchos>
olle i am not versed on merlin enough... i thought there would be a :MerlinErrorUncheck command to do that
<olle>
Hm dunno, actually never used it
<olle>
Anarchos: There's often toggle commands for vim plugins
<Anarchos>
olle i want to keep syntax coloring with no red brushed over error lines.
<olle>
Anarchos: Syntax color is independ of plugin that shows merlin errors. Or should be.
<olle>
independent
<olle>
*
<Anarchos>
i will look
* Anarchos
tested the freshly compiled native on haiku : not so bad : https://bpa.st/6RWA !!