<< 08-11-2026 >>

02:41:21FromDiscord<nwjodo> sent a long message, see https://discordapp.com/channels/371759389889003530/371759389889003532/1568817665915752458
02:51:39FromDiscord<DetermiedNim1> <@&371760044473319454>
02:53:00FromDiscord<DetermiedNim1> free money right here
03:44:08*Guest38 joined #nim
03:45:26*Guest38 quit (Client Quit)
03:47:57*xutaxkamay quit (Read error: Connection reset by peer)
03:52:05*xutaxkamay joined #nim
04:44:42*SchweinD1 quit (Quit: WeeChat 4.8.0-dev)
05:10:05*SchweinDeBurg joined #nim
05:11:34*cws9 quit (Ping timeout: 260 seconds)
05:15:55*cws99 joined #nim
07:04:12*xet7_ quit (Quit: Leaving)
07:04:50*xet7 joined #nim
07:18:57*sdothum quit (Remote host closed the connection)
07:21:13*sdothum joined #nim
08:05:46*cws99 quit (Ping timeout: 274 seconds)
09:03:14Amun-RaI'd go for free beer, but free money? meh
09:04:22*xtr00 joined #nim
09:26:23FromDiscord<pmunch> In reply to @Amun-Ra "I'd go for free": The trick is to buy the beer with the free money
09:34:45*KawaiiSelbst quit (Remote host closed the connection)
09:40:12*KawaiiSelbst_ joined #nim
10:24:57*KawaiiSelbst_ quit (Quit: ZNC 1.10.3 - https://znc.in)
10:27:10*KawaiiSelbst joined #nim
10:29:30FromDiscord<b0rsuk> In reply to @gesee37 "look at the module": I ended up spelling all these values manually, but yes `toSeq` can convert things `@` cannot.
10:32:32FromDiscord<b0rsuk> The compiler is probably smart enough to turn `const toSeq({'0'..'9', 'X"})` into an array.
10:32:49FromDiscord<b0rsuk> (edit) "'X"})`" => "'X'})`"
11:08:35*KawaiiSelbst quit (Read error: Connection reset by peer)
11:09:36*KawaiiSelbst joined #nim
11:28:21FromDiscord<b0rsuk> It's interesting that sets don't support indexing but they appear to be ordered in some way. I mean `X` ends up being last in this case. I don't know how that works.
13:29:26*xtr00 quit (Read error: Connection reset by peer)
13:29:32*xtr00_ joined #nim
14:08:30*xutaxkamay quit (Ping timeout: 244 seconds)
14:10:25*xutaxkamay joined #nim
14:15:45FromDiscord<_timurski> In reply to @b0rsuk "It's interesting that sets": I mean you have to have some ordering in the end
14:15:56FromDiscord<_timurski> (edit) "In reply to @b0rsuk "It's interesting that sets": I mean you have to have some ordering in the end ... " added "at the end of the day"
14:16:06FromDiscord<_timurski> it being a set means there's no guarantees on that orfer
14:16:15FromDiscord<_timurski> In reply to @b0rsuk "The compiler is probably": which is why I think this solution is really quite bad
14:16:29FromDiscord<_timurski> to be honest I don't really get the point of many of these exercises you're doing
14:16:50FromDiscord<_timurski> or maybe just this one and something I've seen before
14:17:12FromDiscord<_timurski> small language features like this really aren't very important
16:09:30FromDiscord<b0rsuk> In reply to @_timurski "which is why I": I can change one line in the program to make it a const string and then there's a guarantee.
16:11:48FromDiscord<b0rsuk> You never know what you're going to learn in the next exercise. For instance I'm very used to Python's immutable strings, so working with mutable strings is a different skill set. There are some very simple algorithms worth knowing such as "reverse a string". `result = char + result`. The last time I've seen this was when programming Java years ago and I forgot about it.
16:12:32FromDiscord<b0rsuk> In the absolute worst case, learning programming takes the place that playing puzzle games filled for me.
16:52:24*acidsys quit (Ping timeout: 241 seconds)
17:16:44*acidsys joined #nim
19:42:30Amun-Rathere are so edge cases in nim pre 2.4.0 when you couldn't modify a string without prepareMutation call first
19:44:13Amun-Ra(var s = "foo"; s[0] = 'b')
22:47:31*xtr00_ quit (Read error: Connection reset by peer)