adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.09 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.09/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
kleisli_ has quit [Remote host closed the connection]
kleisli_ has joined #ocaml
mfp has quit [Ping timeout: 246 seconds]
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
superherointj has quit [Quit: Leaving]
rock64 has quit [Ping timeout: 246 seconds]
rock64 has joined #ocaml
_whitelogger has joined #ocaml
snowpanda has joined #ocaml
<snowpanda> let f p1 ... pn = e1 in e2 (* function as part of let expression *) - What does this do?
<snowpanda> or rather, what are the semantics of that?
<companion_cube> well it defines `f`, a function, in the scope of `e2`
<companion_cube> when `e2` is evaluated the function is removed from the scope
<vicfred> how do I pass two arguments to printf? printf "%c %c" (s.[i],t[i]) doesnt work
<vicfred> printf "%c%c" s.[i] t.[i]
<vicfred> worked
<companion_cube> yep
<vicfred> https://atcoder.jp/contests/abc148/submissions/14831805 here how do I print an \n? putting printf "\n" returned an error which I dont understand
<companion_cube> printf …; printf "\n" should definitely work?
<vicfred> I am learning ocaml live on twitch if someone want to watch
<snowpanda> companion_cube: I'm reading https://www.cs.cornell.edu/courses/cs3110/2020sp/textbook/data/pattern_matching_functions.html and trying to understand what it's saying
<snowpanda> Is that saying that a function's argument can be a pattern?
<snowpanda> but then when I try let f x::xs = xs, I get a syntax error
<companion_cube> `let f (x::xs) = …`
<companion_cube> but it's not too great since `f` will fail on `[]`
<snowpanda> companion_cube: Oh I see. But that page is saying that function arguments can be patterns, it's just that for a function arg that's a pattern, it has to be wrapped in parens
<snowpanda> is that right?
<companion_cube> yep
<companion_cube> if you write `let f (x,y) = …` it actually uses a tuple pattern
<snowpanda> companion_cube: I see, thanks
stux|RC has quit [Quit: Aloha!]
stux|RC has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
mbuf has joined #ocaml
jmagnusj has joined #ocaml
jmagnusj has quit [Client Quit]
bartholin has quit [Quit: Leaving]
malc_ has joined #ocaml
malc_ has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
reynir has joined #ocaml
narimiran has joined #ocaml
osa1 has joined #ocaml
vicfred has quit [Quit: Leaving]
vikfret has joined #ocaml
ggole has joined #ocaml
vbmithr has joined #ocaml
chripell has joined #ocaml
dborisog has joined #ocaml
snowpanda has quit [Quit: Leaving...]
Haudegen has joined #ocaml
Anarchos has joined #ocaml
olle has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
jnavila has joined #ocaml
mfp has joined #ocaml
Anarchos has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
malc_ has joined #ocaml
Anarchos has quit [Remote host closed the connection]
jnavila has quit [Ping timeout: 272 seconds]
kleisli_ has quit [Ping timeout: 260 seconds]
Anarchos has joined #ocaml
Anarchos has quit [Client Quit]
Haudegen has joined #ocaml
dckc has quit [Ping timeout: 240 seconds]
dckc has joined #ocaml
labor[m] has quit [Quit: killed]
lnxw37d4 has quit [Quit: killed]
dash has quit [Quit: killed]
prsafont[m] has quit [Quit: killed]
jimt[m] has quit [Quit: killed]
bglm[m] has quit [Quit: killed]
peddie has quit [Quit: killed]
khady[m] has quit [Quit: killed]
camlriot42 has quit [Quit: killed]
sepp2k has quit [Quit: killed]
damienkrine[m] has quit [Quit: killed]
foocraft[m] has quit [Quit: killed]
lubegasimon[m] has quit [Quit: killed]
Manis[m] has quit [Quit: killed]
aspiwack[m] has quit [Quit: killed]
cgenie[m] has quit [Quit: killed]
aecepoglu[m] has quit [Quit: killed]
flux1 has quit [Quit: killed]
kleisli_ has joined #ocaml
muskan has joined #ocaml
muskan has quit [Ping timeout: 245 seconds]
aspiwack[m] has joined #ocaml
<olle> no topics today?
<olle> summer holiday?
dash has joined #ocaml
labor[m] has joined #ocaml
prsafont[m] has joined #ocaml
lnxw37d4 has joined #ocaml
bglm[m] has joined #ocaml
flux has joined #ocaml
jimt[m] has joined #ocaml
khady[m] has joined #ocaml
camlriot42 has joined #ocaml
peddie has joined #ocaml
sepp2k has joined #ocaml
damienkrine[m] has joined #ocaml
aecepoglu[m] has joined #ocaml
lubegasimon[m] has joined #ocaml
cgenie[m] has joined #ocaml
foocraft[m] has joined #ocaml
Manis[m] has joined #ocaml
waleee-cl has joined #ocaml
khady[m] has quit [Quit: Idle for 30+ days]
osa1 has quit [Quit: osa1]
kleisli_ has quit [Ping timeout: 260 seconds]
<dmbaturin> olle: Myself I'm a bit too busy coding. :)
<olle> ah
Haudegen has quit [Quit: Bin weg.]
osa1 has joined #ocaml
infinity0 has joined #ocaml
sagax has quit [Ping timeout: 260 seconds]
muskan has joined #ocaml
olle has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
nicoo has quit [Ping timeout: 240 seconds]
nicoo has joined #ocaml
Retropikzel has joined #ocaml
chripell has quit [Ping timeout: 240 seconds]
<mbuf> Is there a CLI tool to read S-exp from a file?
<mbuf> Similar to what jq does for JSON files.
olle has joined #ocaml
dborisog has quit [Ping timeout: 264 seconds]
tane has joined #ocaml
bartholin has joined #ocaml
Retropikzel has quit [Quit: Vision[0.10.3]: i've been blurred!]
sagax has joined #ocaml
nicoo has quit [Ping timeout: 240 seconds]
nicoo has joined #ocaml
mbuf has quit [Quit: Leaving]
<flux> haven't heard of one
<flux> convert it to json first 🤔
malc_ has quit [Ping timeout: 256 seconds]
olle has quit [Ping timeout: 260 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
malc_ has joined #ocaml
muskan has quit [Ping timeout: 245 seconds]
osa1 has quit [Quit: osa1]
h11 has quit [Read error: Connection reset by peer]
h11 has joined #ocaml
ggole has quit [Quit: Leaving]
<rock64> which syntax would you use for ownership?
Serpent7776 has quit [Quit: leaving]
narimiran has quit [Quit: leaving]
tane has quit [Quit: Leaving]
waleee-cl has joined #ocaml
malc_ has quit [Ping timeout: 256 seconds]
vicfred has joined #ocaml
vikfret has quit [Quit: Leaving]
Haudegen has quit [Ping timeout: 240 seconds]
kleisli_ has joined #ocaml
leah2 has quit [Ping timeout: 260 seconds]