<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?