adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
AnAverageHuman has joined #ocaml
navaja has joined #ocaml
kakadu has quit [Remote host closed the connection]
navaja has quit [Ping timeout: 246 seconds]
steenuil_ has quit [Quit: Leaving]
AnAverageHuman has quit [Remote host closed the connection]
AnAverageHuman has joined #ocaml
jim7j1ajh has joined #ocaml
jimt has quit [Ping timeout: 245 seconds]
jim7j1ajh is now known as jimt
Exagone313 has quit [Ping timeout: 246 seconds]
klntsky has quit [Ping timeout: 256 seconds]
klntsky has joined #ocaml
eagleflo has quit [Ping timeout: 246 seconds]
eagleflo has joined #ocaml
Exagone313 has joined #ocaml
spew has quit [Quit: Connection closed for inactivity]
Haudegen has quit [Ping timeout: 240 seconds]
mfp has quit [Ping timeout: 245 seconds]
AnAverageHuman has quit [Remote host closed the connection]
AnAverageHuman has joined #ocaml
dedgrant has quit [Ping timeout: 240 seconds]
ziyourenxiang has quit [Quit: Leaving]
keep_learning_M has joined #ocaml
silver has quit [Read error: Connection reset by peer]
iovec has joined #ocaml
kalio has quit [Ping timeout: 268 seconds]
kalio has joined #ocaml
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 240 seconds]
marvin2 has quit [Ping timeout: 250 seconds]
gravicappa has joined #ocaml
spew has joined #ocaml
themsay has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
kvda has quit [Client Quit]
AnAverageHuman has quit [Ping timeout: 256 seconds]
jao has quit [Ping timeout: 245 seconds]
kvda has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spew has quit [Read error: Connection reset by peer]
ziyourenxiang has joined #ocaml
infinity0 has quit [Ping timeout: 244 seconds]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
klntsky has quit [Ping timeout: 256 seconds]
jnavila has joined #ocaml
klntsky has joined #ocaml
asymptotically has joined #ocaml
asymptotically has quit [Remote host closed the connection]
embden has joined #ocaml
themsay has quit [Ping timeout: 244 seconds]
kakadu has joined #ocaml
sagotch has joined #ocaml
iovec has quit [Quit: Connection closed for inactivity]
bartholin has joined #ocaml
iovec has joined #ocaml
Serpent7776 has joined #ocaml
jnavila has quit [Ping timeout: 250 seconds]
sagotch has quit [Ping timeout: 268 seconds]
sagotch has joined #ocaml
mfp has joined #ocaml
kakadu has quit [Remote host closed the connection]
jnavila has joined #ocaml
sagotch has quit [Quit: Leaving.]
ziyourenxiang has quit [Ping timeout: 245 seconds]
<Leonidas> embden: do you have all these files? Graphics might not be installed on your system
ggole has joined #ocaml
<embden> Leonidas: I found out that ocaml wasn't installed
<notnotdan`> Leonidas: sorry, are you Leonidas-from-XIV on github?
<Leonidas> notnotdan`: upon examination, I seem to be
<notnotdan`> :D
<notnotdan`> nice to meet you on irc, i am co-dan on github
<notnotdan`> and i will try to spend some time today hecking around with wiringpi
<Leonidas> embden: how did you get the unbound module error then?
<embden> Leonidas: I don't know
<Leonidas> notnotdan`: ah. cool. Yeah, I noticed I don't have access to a Raspberry Pi at the moment (looks like I didn't bring it with me on my last move) so progress has been a bit slow.
<Leonidas> notnotdan`: but if you want to I can add you to the repo, that way you don't need to create another repo
<notnotdan`> can i just send you PRs for now? i am not confident enough in this area to be pushing all by myself ( ? ? ? )
<Leonidas> (or fwiw, if you want to take over the repo you can do that too)
<Leonidas> notnotdan`: sure thing. If I don't answer in time feel free to bother me on IRC
<notnotdan`> :3 thx
<Leonidas> (I have a JS project which gets a lot of notifications so I rarely look at github stuff)
ravenousmoose has joined #ocaml
sagotch has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
<Drup> Leonidas: you know you can put that project on a different email address ?
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
sagotch has quit [Ping timeout: 250 seconds]
<Leonidas> Drup: yes, but the notification view on github is still shared AND it reminds me to rewrite it in ocaml and compile it with jsoo eventually.
Haudegen has joined #ocaml
silver has joined #ocaml
sagotch has joined #ocaml
pzp has quit [Quit: Connection closed for inactivity]
jao has joined #ocaml
q9929t has joined #ocaml
q9929t has quit [Read error: Connection reset by peer]
q9929t has joined #ocaml
q9929t has quit [Read error: Connection reset by peer]
q9929t has joined #ocaml
q9929t has quit [Read error: Connection reset by peer]
q9929t has joined #ocaml
q9929t has quit [Read error: Connection reset by peer]
q9929t has joined #ocaml
q9929t has quit [Read error: Connection reset by peer]
q9929t has joined #ocaml
q9929t has quit [Read error: Connection reset by peer]
_whitelogger has joined #ocaml
notnotdan` has quit [Remote host closed the connection]
notnotdan` has joined #ocaml
AnAverageHuman has joined #ocaml
sagotch has quit [Quit: Leaving.]
ravenousmoose has joined #ocaml
gareppa has joined #ocaml
jnavila has quit [Ping timeout: 246 seconds]
FreeBirdLjj has joined #ocaml
jnavila has joined #ocaml
Haudegen has quit [Remote host closed the connection]
jnavila has quit [Ping timeout: 252 seconds]
jnavila has joined #ocaml
gareppa has quit [Quit: Leaving]
GreyFaceNoSpace has quit [Quit: Ex-Chat]
sagotch has joined #ocaml
themsay has joined #ocaml
sagotch has quit [Quit: Leaving.]
TheLemonMan has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
philtor has joined #ocaml
philt has joined #ocaml
philt has left #ocaml [#ocaml]
ggole has quit [Quit: Leaving]
gravicappa has quit [Ping timeout: 250 seconds]
<AnAverageHuman> Is it possible to shorten a line like | hd :: tl -> if hd = n then (remove_in n tl) else (hd :: remove_in n tl) ?
<thizanne> not much
<AnAverageHuman> Mostly looking for a way to remove the duplication of "remove_in n tl"
<thizanne> well you can remove the parentheses
<thizanne> and give a name to remove blabla :
<companion_cube> let tl' = remove_in n tl in if …
<thizanne> | hd :: tl -> let tl' = remove_in n tl in if hd = n then tl' else hd :: tl'
<thizanne> it's not that shorter though
<AnAverageHuman> Is there a way to express something like `(if hd <> n then hd ::) remove_in n tl`?
<thizanne> not directly
initiumdoeslinux has joined #ocaml
<thizanne> you can write `(if hd <> n then List.cons hd else fun x -> x) (remove_in n tl)`
initiumdoeslinux has quit [Read error: Connection reset by peer]
<AnAverageHuman> I see. Thanks!
initiumdoeslinux has joined #ocaml
initiumdoeslinux has quit [Client Quit]
<thizanne> that does work better when the tail depends on your value though
<thizanne> like let rec stop_at_first n = function | [] -> [] | x :: xs -> x :: (if x = n then [] else stop_at_first n xs)
<companion_cube> thizanne: that's ugly AF
<thizanne> no one asked you :>
<companion_cube> (I know you're just trying to provide an answer, but still :D)
ravenousmoose is now known as ravenousmoose[aw
ravenousmoose[aw has quit [Quit: Taking a quick nap...ZZzzz]
ravenousmoose has joined #ocaml
kakadu has joined #ocaml
recj has joined #ocaml
SpiceGuid has joined #ocaml
logicmoo is now known as dmiles
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
dedgrant has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
embden has quit [Ping timeout: 246 seconds]
jnavila has quit [Ping timeout: 246 seconds]
Serpent7776 has quit [Quit: leaving]
dedgrant has quit [Ping timeout: 250 seconds]
kakadu has quit [Remote host closed the connection]
leah2 has quit [Ping timeout: 264 seconds]
SpiceGuid has quit [Ping timeout: 250 seconds]
leah2 has joined #ocaml
bartholin has quit [Remote host closed the connection]