00:01
toppler has joined #ocaml
00:49
toppler has quit [Ping timeout: 240 seconds]
00:56
nullifidian_ has joined #ocaml
00:59
kvda has joined #ocaml
00:59
nullifidian has quit [Ping timeout: 276 seconds]
01:05
toppler has joined #ocaml
01:08
ravenousmoose has joined #ocaml
01:12
ravenousmoose has quit [Ping timeout: 245 seconds]
01:31
ycjung has quit [Quit: WeeChat 2.6]
01:40
vicfred has quit [Ping timeout: 240 seconds]
01:50
toppler has quit [Ping timeout: 240 seconds]
01:54
silver has quit [Read error: Connection reset by peer]
02:07
toppler has joined #ocaml
02:13
mfp has quit [Ping timeout: 245 seconds]
02:18
amiloradovsky has quit [Ping timeout: 240 seconds]
02:31
ravenousmoose has joined #ocaml
02:35
ravenousmoose has quit [Ping timeout: 252 seconds]
02:39
malina has quit [Ping timeout: 240 seconds]
02:52
ravenousmoose has joined #ocaml
02:53
toppler has quit [Ping timeout: 268 seconds]
02:57
ravenousmoose has quit [Ping timeout: 276 seconds]
03:04
keep_learning has quit [Ping timeout: 240 seconds]
03:08
toppler has joined #ocaml
03:36
tormen has joined #ocaml
03:39
tormen_ has quit [Ping timeout: 268 seconds]
04:00
toppler has quit [Ping timeout: 265 seconds]
04:15
toppler has joined #ocaml
04:42
ygrek_ has joined #ocaml
04:45
ygrek has quit [Ping timeout: 264 seconds]
04:54
toppler has quit [Ping timeout: 276 seconds]
04:59
zolk3ri has quit [Ping timeout: 260 seconds]
05:04
zolk3ri has joined #ocaml
05:05
kgop has joined #ocaml
05:09
retropikzel has joined #ocaml
05:09
toppler has joined #ocaml
05:10
kgop has quit [Client Quit]
05:12
kgop has joined #ocaml
05:16
kgop has quit [Client Quit]
05:18
kgop has joined #ocaml
05:18
kgop has quit [Client Quit]
05:18
kgop has joined #ocaml
05:19
kgop has quit [Client Quit]
05:19
kgop has joined #ocaml
05:20
<
kgop >
/msg NickServ STATUS
05:21
tmps2 has joined #ocaml
05:22
zolk3ri has quit [Remote host closed the connection]
05:23
nullifidian__ has joined #ocaml
05:26
nullifidian_ has quit [Ping timeout: 265 seconds]
05:27
tmps2 has quit [Remote host closed the connection]
05:45
toppler has quit [Ping timeout: 268 seconds]
05:59
retropikzel has quit [Remote host closed the connection]
06:00
toppler has joined #ocaml
06:06
narimiran has joined #ocaml
06:06
narimiran has quit [Remote host closed the connection]
06:07
narimiran has joined #ocaml
06:16
mbuf has joined #ocaml
06:23
unyu has quit [Ping timeout: 245 seconds]
06:26
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:29
unyu has joined #ocaml
06:43
toppler has quit [Ping timeout: 268 seconds]
06:44
Haudegen has joined #ocaml
06:49
rgherdt has joined #ocaml
06:57
toppler has joined #ocaml
07:04
rgherdt has quit [Ping timeout: 276 seconds]
07:09
kvda has joined #ocaml
07:12
vicfred has joined #ocaml
07:39
gravicappa has joined #ocaml
07:45
toppler has quit [Ping timeout: 265 seconds]
07:46
ravenousmoose has joined #ocaml
07:49
ggole has joined #ocaml
07:59
nullifidian__ is now known as nullifidian
07:59
toppler has joined #ocaml
08:02
KeyJoo has joined #ocaml
08:03
nullifidian_ has joined #ocaml
08:04
ycjung has joined #ocaml
08:07
nullifidian has quit [Ping timeout: 276 seconds]
08:11
bitwinery has quit [Quit: Leaving]
08:32
nullifidian_ is now known as nullifidian
08:32
barockobamo has joined #ocaml
08:32
barockobamo has quit [Remote host closed the connection]
08:33
barockobamo has joined #ocaml
08:34
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:42
kakadu has joined #ocaml
08:44
toppler has quit [Ping timeout: 265 seconds]
08:44
pino|work has joined #ocaml
08:49
ravenousmoose has quit [Ping timeout: 252 seconds]
08:58
toppler has joined #ocaml
09:06
bartholin has quit [Remote host closed the connection]
09:22
ycjung has quit [Ping timeout: 276 seconds]
09:43
toppler has quit [Ping timeout: 246 seconds]
09:47
ravenousmoose has joined #ocaml
09:51
ravenousmoose has quit [Ping timeout: 252 seconds]
09:59
jbrown has quit [Quit: Leaving]
09:59
toppler has joined #ocaml
10:07
dmiles has quit [Read error: Connection reset by peer]
10:12
dmiles has joined #ocaml
10:15
jbrown has joined #ocaml
10:24
mfp has joined #ocaml
10:48
toppler has quit [Ping timeout: 268 seconds]
11:03
toppler has joined #ocaml
11:10
ravenousmoose has joined #ocaml
11:16
ravenousmoose has quit [Ping timeout: 276 seconds]
11:44
Haudegen has quit [Quit: Bin weg.]
11:48
toppler has quit [Ping timeout: 240 seconds]
11:52
ravenousmoose has joined #ocaml
11:55
gareppa has joined #ocaml
11:57
ravenousmoose has quit [Ping timeout: 264 seconds]
12:03
toppler has joined #ocaml
12:22
KeyJoo has quit [Quit: KeyJoo]
12:41
brettgilio has quit [Ping timeout: 245 seconds]
12:41
brettgilio has joined #ocaml
12:43
nullifidian has quit [Read error: Connection reset by peer]
12:45
Haudegen has joined #ocaml
12:45
nullifidian has joined #ocaml
12:47
toppler has quit [Ping timeout: 240 seconds]
12:48
zolk3ri has joined #ocaml
12:51
brettgilio has quit [Ping timeout: 276 seconds]
13:02
toppler has joined #ocaml
13:11
brettgilio has joined #ocaml
13:24
silver has joined #ocaml
13:46
oni-on-ion has joined #ocaml
13:48
spew has joined #ocaml
13:49
toppler has quit [Ping timeout: 250 seconds]
13:56
tane has joined #ocaml
14:04
toppler has joined #ocaml
14:08
ygrek_ has quit [Ping timeout: 276 seconds]
14:21
gareppa has quit [Quit: Leaving]
14:25
KeyJoo has joined #ocaml
14:30
FreeBirdLjj has joined #ocaml
14:31
mbuf has quit [Quit: Leaving]
14:51
retropikzel has joined #ocaml
14:51
ygrek_ has joined #ocaml
14:53
toppler has quit [Ping timeout: 252 seconds]
14:56
gareppa has joined #ocaml
15:00
jaar has joined #ocaml
15:09
toppler has joined #ocaml
15:10
RalfJ has quit [Ping timeout: 276 seconds]
15:20
gareppa has quit [Quit: Leaving]
15:25
RalfJ has joined #ocaml
15:33
FreeBirdLjj has quit [Remote host closed the connection]
15:45
kakadu has quit [Quit: Konversation terminated!]
15:46
kakadu has joined #ocaml
15:52
smazga has joined #ocaml
15:56
toppler has quit [Ping timeout: 268 seconds]
15:59
kakadu has quit [Ping timeout: 268 seconds]
16:04
FreeBirdLjj has joined #ocaml
16:08
FreeBirdLjj has quit [Remote host closed the connection]
16:08
FreeBirdLjj has joined #ocaml
16:11
toppler has joined #ocaml
16:12
FreeBirdLjj has quit [Ping timeout: 245 seconds]
16:21
kakadu has joined #ocaml
16:28
ziyourenxiang has quit [Ping timeout: 265 seconds]
16:40
<
narimiran >
another beginner's question: if you need to read a one-line file, how do you deal with the trailing newline?
16:40
<
narimiran >
i'm using `CCIO.(with_in filename read_all)`, but this also reads the final newline
16:41
<
oni-on-ion >
does it return a list ?
16:42
<
narimiran >
is `CCIO.(with_in filename read_line) |> Option.value ~default:""` the way to go, or is there something nicer/idiomatic?
16:42
<
narimiran >
oni-on-ion: no, it returns a string, which i want to split into a list
16:44
<
narimiran >
the problem is that the initial solution with `read_all` will have a list whose last element is "fooxyz\n"
16:44
<
oni-on-ion >
from builtin String module, there is "val split_on_char : char -> string -> string list"
16:45
<
narimiran >
that's not a problem, i know how to split it
16:45
<
oni-on-ion >
hmm perhaps just split the last element ?
16:45
<
oni-on-ion >
if it is specific case to the last element from read_all then it is a logic problem
16:45
Athas has left #ocaml ["ERC (IRC client for Emacs 26.1)"]
16:46
<
narimiran >
contents of a file are on one line, something like: "abc def ghi jkl mno" and, there is a final newline in a file, so the contents really are ""abc def ghi jkl mno\n"
16:47
<
oni-on-ion >
yes. so String.split_on_char '\n' s -> will give ["mno"] at the very least
16:48
<
oni-on-ion >
current code example may help to reveal the solution
16:49
<
narimiran >
input: "abc def ghi jkl mno\n"; wanted output: ["abc"; "def"; "ghi"; "jkl"; "mno"]
16:49
<
thizanne >
narimiran: you can always CCString.rtrim your string
16:50
<
thizanne >
and then split_on_char ' ' I guess ?
16:50
<
narimiran >
thizanne: thanks! `rtrim` sounds like exactly what i need
16:50
Haudegen has quit [Quit: Bin weg.]
16:53
<
retropikzel >
Any way to have strings so that I dont need to escape " inside them?
16:53
toppler has quit [Ping timeout: 265 seconds]
16:54
<
narimiran >
retropikzel: {| ab"cd"ef |}
16:55
<
narimiran >
(the first time i can answer something, not just ask questions :))
16:57
<
retropikzel >
narimiran: Thank you very much :)
16:57
<
retropikzel >
(It was my frist question here)
17:01
cross has joined #ocaml
17:06
barockobamo has quit [Remote host closed the connection]
17:07
toppler has joined #ocaml
17:09
vicfred_ has joined #ocaml
17:12
pino|work has quit [Ping timeout: 240 seconds]
17:12
vicfred has quit [Ping timeout: 264 seconds]
17:13
bartholin has joined #ocaml
17:17
pino|work has joined #ocaml
17:19
rgherdt has joined #ocaml
17:21
KeyJoo has quit [Quit: KeyJoo]
17:41
pino|work has quit [Quit: bye]
17:50
rgherdt has quit [Remote host closed the connection]
17:51
rgherdt has joined #ocaml
17:54
Haudegen has joined #ocaml
17:55
toppler has quit [Ping timeout: 240 seconds]
18:10
toppler has joined #ocaml
18:23
TheLemonMan has joined #ocaml
18:29
jnavila has joined #ocaml
18:37
Serpent7776 has joined #ocaml
18:39
webshinra has joined #ocaml
18:40
jnavila has quit [Ping timeout: 276 seconds]
18:50
zolk3ri has quit [Remote host closed the connection]
18:51
toppler has quit [Ping timeout: 268 seconds]
18:59
lucilius has joined #ocaml
19:01
lucilius has quit [Client Quit]
19:06
nullifidian_ has joined #ocaml
19:07
toppler has joined #ocaml
19:09
jnavila has joined #ocaml
19:10
nullifidian has quit [Ping timeout: 240 seconds]
19:13
jnavila_ has joined #ocaml
19:15
jnavila has quit [Ping timeout: 246 seconds]
19:20
oni-on-ion has quit [Remote host closed the connection]
19:20
oni-on-ion has joined #ocaml
19:28
retropikzel has quit [Remote host closed the connection]
19:41
jaar has quit [Ping timeout: 276 seconds]
19:52
toppler has quit [Ping timeout: 265 seconds]
19:54
malina has joined #ocaml
20:03
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
20:07
toppler has joined #ocaml
20:11
gravicappa has quit [Ping timeout: 245 seconds]
20:15
troydm has quit [Ping timeout: 265 seconds]
20:25
brettgilio has quit [Ping timeout: 250 seconds]
20:26
brettgilio has joined #ocaml
20:40
jbrown has quit [Ping timeout: 246 seconds]
20:46
bitwinery has joined #ocaml
20:47
bitwinery has quit [Remote host closed the connection]
20:47
bitwinery has joined #ocaml
20:50
ggole has quit [Quit: Leaving]
20:52
jbrown has joined #ocaml
20:52
toppler has quit [Ping timeout: 246 seconds]
20:52
rgherdt has quit [Quit: Leaving]
21:09
toppler has joined #ocaml
21:09
brettgilio has quit [Ping timeout: 252 seconds]
21:13
troydm has joined #ocaml
21:19
rwmjones is now known as rwmjones_IMSmtg
21:20
jaar has joined #ocaml
21:24
brettgilio has joined #ocaml
21:24
narimiran has quit [Ping timeout: 268 seconds]
21:44
rgherdt has joined #ocaml
21:47
jnavila_ has quit [Remote host closed the connection]
21:54
brettgilio has quit [Ping timeout: 245 seconds]
21:54
brettgilio has joined #ocaml
21:58
iovec has joined #ocaml
21:58
toppler has quit [Ping timeout: 240 seconds]
21:59
brettgilio has quit [Ping timeout: 265 seconds]
22:01
brettgilio has joined #ocaml
22:10
smazga has quit [Quit: leaving]
22:15
toppler has joined #ocaml
22:26
Serpent7776 has quit [Quit: leaving]
22:28
assemblyman has joined #ocaml
22:32
oni-on-ion has quit [Remote host closed the connection]
22:36
tane has quit [Quit: Leaving]
22:37
ziyourenxiang has joined #ocaml
22:40
ygrek_ has quit [Ping timeout: 246 seconds]
22:43
assemblyman has quit [Quit: ™]
22:57
toppler has quit [Ping timeout: 240 seconds]
23:07
vicfred_ has quit [Ping timeout: 246 seconds]
23:08
rgherdt has quit [Ping timeout: 246 seconds]
23:10
kakadu has quit [Remote host closed the connection]
23:15
toppler has joined #ocaml
23:29
kvda has joined #ocaml
23:31
brettgilio has quit [Ping timeout: 250 seconds]
23:32
brettgilio has joined #ocaml
23:53
Haudegen has quit [Ping timeout: 265 seconds]