00:17
mxns has joined #ocaml
00:21
henistein has quit [Quit: Connection closed]
00:22
mxns_ has joined #ocaml
00:25
mxns has quit [Ping timeout: 245 seconds]
00:27
Tuplanolla has quit [Quit: Leaving.]
00:40
zebrag has joined #ocaml
00:54
Guest43593 has quit []
00:56
mfp has quit [Ping timeout: 268 seconds]
00:59
zebrag has quit [Quit: Konversation terminated!]
00:59
zebrag has joined #ocaml
01:01
nullcone has joined #ocaml
01:30
shmibs has quit [Quit: leaving =o]
01:32
mxns_ has quit [Ping timeout: 265 seconds]
01:32
shmibs has joined #ocaml
01:59
zebrag has quit [Quit: Konversation terminated!]
01:59
zebrag has joined #ocaml
02:00
zebrag has quit [Client Quit]
02:00
mxns has joined #ocaml
02:26
mxns has quit [Ping timeout: 265 seconds]
02:52
Guest50292 has quit [Changing host]
02:52
Guest50292 has joined #ocaml
02:52
Guest50292 has joined #ocaml
02:54
Guest50292 has quit [Quit: authenticating]
02:54
Guest502921 has joined #ocaml
02:54
mxns has joined #ocaml
02:58
Guest502921 has quit [Changing host]
02:58
Guest502921 has joined #ocaml
02:58
Guest502921 has joined #ocaml
02:58
Guest502921 has quit [Client Quit]
02:58
Guest502921 has joined #ocaml
02:59
Guest502921 has joined #ocaml
02:59
Guest502921 has quit [Changing host]
02:59
Guest502921 has joined #ocaml
03:05
Guest502921 is now known as dieggsy
03:31
mxns has joined #ocaml
04:30
mxns has quit [Ping timeout: 260 seconds]
04:30
mxns has joined #ocaml
04:36
mbuf has joined #ocaml
05:04
waleee-cl has quit [Quit: Connection closed for inactivity]
05:10
Sanduni has joined #ocaml
05:13
Sanduni has quit [Client Quit]
05:15
Sanduni has joined #ocaml
05:16
Sanduni has quit [Client Quit]
06:04
mxns has quit [Ping timeout: 245 seconds]
06:30
mxns has joined #ocaml
06:35
mxns has quit [Ping timeout: 252 seconds]
07:05
mbuf has quit [Ping timeout: 240 seconds]
07:05
mbuf has joined #ocaml
07:07
mbuf has quit [Client Quit]
07:10
TheLemonMan has joined #ocaml
07:22
Serpent7776 has joined #ocaml
07:40
wonko7 has joined #ocaml
07:43
tizoc has quit [Quit: Coyote finally caught me]
07:44
tizoc has joined #ocaml
08:02
Tuplanolla has joined #ocaml
08:50
mxns has joined #ocaml
08:55
mxns has quit [Ping timeout: 250 seconds]
08:56
wonko7 has quit [Ping timeout: 260 seconds]
09:16
mfp has joined #ocaml
09:16
SrPx has quit [Ping timeout: 260 seconds]
09:19
SrPx has joined #ocaml
10:20
delysin has quit [Ping timeout: 240 seconds]
10:28
delysin has joined #ocaml
10:38
bacam_ has quit [Quit: reboot]
10:50
henistein has joined #ocaml
10:52
bacam has joined #ocaml
10:55
<
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
11:10
<
d_bot >
<Butanium> And what if there are 0 element?
11:11
<
henistein >
returns -1
11:11
<
d_bot >
<Butanium> Can you show some exemple of input and expected output?
11:12
<
henistein >
[[2]] -> 1 | [[1; 2]; [3; 4]] -> 0 | _ -> -1
11:12
<
octachron >
henistein, you are confusing the first element of the outer list with the outer list itself.
11:13
<
d_bot >
<Butanium> So all element of the list of list have the same length?
11:14
<
d_bot >
<Butanium> So [[2];[3]] returns 1?
11:15
<
henistein >
No it should return 0, just returns 1 if list has just a element ([[x]]), where x can be any number
11:17
<
d_bot >
<Butanium> [[2;2]] returns 0?
11:18
infinity0 has quit [Ping timeout: 246 seconds]
11:18
<
henistein >
yes, but the way I will use this function that willl never happen, I will use just n * n list
11:19
<
henistein >
so in theory it can really returns 1, but [[2];[3]] must return 0
11:21
<
d_bot >
<Butanium> Oh ok
11:22
<
d_bot >
<Butanium> So you want to function
11:22
<
d_bot >
<Butanium> [x] -> 1
11:22
<
d_bot >
<Butanium> [] -> -1
11:22
<
d_bot >
<Butanium> _ -> 0
11:23
<
d_bot >
<Butanium> Otachron was right
11:24
infinity0 has joined #ocaml
11:25
<
henistein >
yes it works, thanks
11:35
bjorkintosh has quit [Remote host closed the connection]
11:35
bjorkintosh has joined #ocaml
12:01
bytesighs has quit [Quit: Connection closed for inactivity]
12:03
l1x has joined #ocaml
12:07
sagax has joined #ocaml
12:27
SoF has joined #ocaml
12:52
mxns has joined #ocaml
12:56
mxns has quit [Ping timeout: 260 seconds]
13:13
bartholin has joined #ocaml
13:22
TheLemonMan has quit [Read error: Connection reset by peer]
13:23
TheLemonMan has joined #ocaml
13:33
mbuf has joined #ocaml
14:01
bartholin has quit [Ping timeout: 260 seconds]
14:08
TheLemonMan has quit [Remote host closed the connection]
14:29
reffter has joined #ocaml
14:30
mxns has joined #ocaml
14:39
TheLemonMan has joined #ocaml
15:21
<
d_bot >
<score> why does specifying `-cc cc` (or any CC at all) in ocamlopt result in a filesize reduction?
15:34
mxns has quit [Ping timeout: 252 seconds]
15:35
waleee-cl has joined #ocaml
15:47
reffter has quit [Quit: Connection closed]
15:54
mbuf has quit [Quit: Leaving]
16:18
henistein has quit [Quit: Connection closed]
16:29
wonko7 has joined #ocaml
17:30
mxns has joined #ocaml
17:35
mxns has quit [Ping timeout: 240 seconds]
17:46
henistein has joined #ocaml
17:56
mxns has joined #ocaml
18:01
sagax has quit [Quit: Konversation terminated!]
18:06
<
octachron >
You are missing parenthesis `f L (x,y)` means `(f L)(x,y)`whereas you meant `f (L(x,y))`
18:51
dieggsy has quit [Ping timeout: 245 seconds]
18:51
pqwy[m] has quit [Ping timeout: 245 seconds]
18:52
labor[m] has quit [Ping timeout: 245 seconds]
18:52
pqwy[m] has joined #ocaml
18:53
labor[m] has joined #ocaml
18:54
dieggsy has joined #ocaml
19:13
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
20:00
henistein has quit [Quit: Connection closed]
21:13
wonko7 has quit [Ping timeout: 265 seconds]
22:01
mxns has quit [Ping timeout: 252 seconds]
22:18
xenu has quit [Remote host closed the connection]
22:18
mxns has joined #ocaml
23:02
Haudegen has joined #ocaml
23:13
Haudegen has quit [Ping timeout: 240 seconds]