companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.11 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.11/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
mxns has joined #ocaml
henistein has quit [Quit: Connection closed]
mxns_ has joined #ocaml
mxns has quit [Ping timeout: 245 seconds]
Tuplanolla has quit [Quit: Leaving.]
zebrag has joined #ocaml
Guest43593 has quit []
mfp has quit [Ping timeout: 268 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
nullcone has joined #ocaml
shmibs has quit [Quit: leaving =o]
mxns_ has quit [Ping timeout: 265 seconds]
shmibs has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
zebrag has quit [Client Quit]
mxns has joined #ocaml
mxns has quit [Ping timeout: 265 seconds]
Guest50292 has quit [Changing host]
Guest50292 has joined #ocaml
Guest50292 has joined #ocaml
Guest50292 has quit [Quit: authenticating]
Guest502921 has joined #ocaml
mxns has joined #ocaml
Guest502921 has quit [Changing host]
Guest502921 has joined #ocaml
Guest502921 has joined #ocaml
Guest502921 has quit [Client Quit]
Guest502921 has joined #ocaml
Guest502921 has joined #ocaml
Guest502921 has quit [Changing host]
Guest502921 has joined #ocaml
Guest502921 is now known as dieggsy
mxns has quit [Quit: ZNC 1.8.2 - https://znc.in]
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
mbuf has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
Sanduni has joined #ocaml
Sanduni has quit [Client Quit]
Sanduni has joined #ocaml
Sanduni has quit [Client Quit]
mxns has quit [Ping timeout: 245 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 252 seconds]
mbuf has quit [Ping timeout: 240 seconds]
mbuf has joined #ocaml
mbuf has quit [Client Quit]
TheLemonMan has joined #ocaml
Serpent7776 has joined #ocaml
wonko7 has joined #ocaml
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml
Tuplanolla has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
wonko7 has quit [Ping timeout: 260 seconds]
mfp has joined #ocaml
SrPx has quit [Ping timeout: 260 seconds]
SrPx has joined #ocaml
delysin has quit [Ping timeout: 240 seconds]
delysin has joined #ocaml
bacam_ has quit [Quit: reboot]
henistein has joined #ocaml
bacam has joined #ocaml
<henistein> I want to make a function that receives a list list, if the list list just has a element then return 1, if it has more than 1 element then return 0 , what am I doing wrong? https://pastebin.com/R94V3byE
<d_bot> <Butanium> And what if there are 0 element?
<henistein> returns -1
<d_bot> <Butanium> Can you show some exemple of input and expected output?
<henistein> [[2]] -> 1  |  [[1; 2]; [3; 4]] -> 0 | _ -> -1
<octachron> henistein, you are confusing the first element of the outer list with the outer list itself.
<d_bot> <Butanium> So all element of the list of list have the same length?
<henistein> yes
<d_bot> <Butanium> So [[2];[3]] returns 1?
<henistein> No it should return 0, just returns 1 if list has just a element ([[x]]), where x can be any number
<d_bot> <Butanium> [[2;2]] returns 0?
infinity0 has quit [Ping timeout: 246 seconds]
<henistein> yes, but the way I will use this function that willl never happen, I will use just n * n list
<henistein> so in theory it can really returns 1, but [[2];[3]] must return 0
<d_bot> <Butanium> Oh ok
<d_bot> <Butanium> So you want to function
<d_bot> <Butanium> [x] -> 1
<d_bot> <Butanium> [] -> -1
<d_bot> <Butanium> _ -> 0
<d_bot> <Butanium> Otachron was right
infinity0 has joined #ocaml
<henistein> yes it works, thanks
bjorkintosh has quit [Remote host closed the connection]
bjorkintosh has joined #ocaml
bytesighs has quit [Quit: Connection closed for inactivity]
l1x has joined #ocaml
sagax has joined #ocaml
SoF has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
bartholin has joined #ocaml
TheLemonMan has quit [Read error: Connection reset by peer]
TheLemonMan has joined #ocaml
mbuf has joined #ocaml
bartholin has quit [Ping timeout: 260 seconds]
TheLemonMan has quit [Remote host closed the connection]
reffter has joined #ocaml
mxns has joined #ocaml
TheLemonMan has joined #ocaml
<d_bot> <score> why does specifying `-cc cc` (or any CC at all) in ocamlopt result in a filesize reduction?
mxns has quit [Ping timeout: 252 seconds]
waleee-cl has joined #ocaml
reffter has quit [Quit: Connection closed]
mbuf has quit [Quit: Leaving]
henistein has quit [Quit: Connection closed]
wonko7 has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
henistein has joined #ocaml
<henistein> I want to create a function that receives a type leaf = L of int * int, I don't know how I should do it, https://pastebin.pl/view/b47b554c
mxns has joined #ocaml
sagax has quit [Quit: Konversation terminated!]
<octachron> You are missing parenthesis `f L (x,y)` means `(f L)(x,y)`whereas you meant `f (L(x,y))`
dieggsy has quit [Ping timeout: 245 seconds]
pqwy[m] has quit [Ping timeout: 245 seconds]
labor[m] has quit [Ping timeout: 245 seconds]
pqwy[m] has joined #ocaml
labor[m] has joined #ocaml
dieggsy has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
henistein has quit [Quit: Connection closed]
wonko7 has quit [Ping timeout: 265 seconds]
mxns has quit [Ping timeout: 252 seconds]
xenu has quit [Remote host closed the connection]
mxns has joined #ocaml
Haudegen has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]