chenglou changed the topic of #reasonml to: facebook.github.io/reason/. Public channel logs at irclog.whitequark.org/reasonml. Discord: discord.gg/reasonml
_whitelogger has joined #reasonml
copy` has quit [Quit: Connection closed for inactivity]
copy` has joined #reasonml
arjenr has joined #reasonml
nomicflux has joined #reasonml
<arjenr> How do I concatenate lists like I would in ocaml? before :: e1 :: e2 :: after, with before and after being lists of elements of the same time as e1 and e2?
<arjenr> There seems to be syntax for the after part [e1, e2, ...after], but what about the before part?
<arjenr> chenglou: yunxing: yt by chance?
<chenglou> @arjenr hey
<chenglou> what's before? Another list or an item?
<arjenr> Another list. I am moving items from the after to the before list.
<arjenr> chenglou: ^
<chenglou> even in ocaml that'd be @ rather than :: right?
<chenglou> btw, general conversion trick in case you didn't see this yet: https://github.com/facebook/reason/wiki/Newcomer-Tips-&-Tricks#ocaml---reason-conversion-tricks
<chenglou> `item1 :: item2 :: theRest` is `[Item1, item2, ...theRest]` in reason, yes. We don't support multiple spreads
<arjenr> chenglou: ah right. I got the wrong assumption here :(
<chenglou> out of perf consideration when people do `[...foo, ...bar]` and don't realize the perf cost
<chenglou> O(n) in terms of size of foo
<chenglou> @ is what you want here in both syntaxes
<chenglou> also, thanks for pinging. Otherwise I leave IRC open and forget about it frequently
<chenglou> our discord channel is more active if I'm not around here. discord.gg/reasonml
nomicflux has quit [Quit: nomicflux]
arjenr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nomicflux has joined #reasonml
nomicflux has quit [Quit: nomicflux]
arjenr has joined #reasonml
arjenr has quit [Client Quit]
nomicflux has joined #reasonml
nomicflux has quit [Quit: nomicflux]
arjenr has joined #reasonml
arjenr has quit [Client Quit]
nomicflux has joined #reasonml