203 Members
Unofficial room for chatter about the Elixir language. This channel is publicly logged.30 Servers

Load older messages

Timestamp Message
6 Jan 2020
00:11:05@joey:tomesh.netjoey joined the room.
06:26:08@jmoggee:matrix.orgJean Moggee joined the room.
06:26:33@jmoggee:matrix.orgJean Moggee changed their display name from jmoggee to Jean Moggee.
06:34:49@vsmosena:matrix.orgvsmosena joined the room.
7 Jan 2020
04:09:37@Orzech:matrix.org@Orzech:matrix.org left the room.
8 Jan 2020
01:07:42@yusukewa:matrix.orgYasmi changed their display name from Yusuke Watanabe to Yasmi.
10 Jan 2020
16:57:54@framstag:matrix.orgframstag joined the room.
12 Jan 2020
18:57:59@frieder:utwente.iofrieder joined the room.
15 Jan 2020
01:56:57@yusukewa:matrix.orgYasmi set a profile picture.
01:57:38@yusukewa:matrix.orgYasmi changed their profile picture.
01:57:57@yusukewa:matrix.orgYasmi changed their profile picture.
01:59:07@yusukewa:matrix.orgYasmi changed their profile picture.
01:59:21@yusukewa:matrix.orgYasmi changed their profile picture.
16 Jan 2020
22:43:01@thoth101010:matrix.orgthoth set a profile picture.
17 Jan 2020
02:57:35@yusukewa:matrix.orgYasmivery noobish question, what does a newline mean in a function definition?
02:58:34@yusukewa:matrix.orgYasmiif some pure function was called on one line, and the return value was not attached to anything, and then newline, does nothinig happen?
03:01:12@yusukewa:matrix.orgYasmiand how should I look up questions about syntax in the documentation?
06:20:00@croeso:vepsian.westeurope.cloudapp.azure.comcroesoIt means nothing. In your example is the pure function call the last expression in the function? If so, the return value becomes the result of the function
07:12:46@yusukewa:matrix.orgYasmiok thank you 🥰
22:29:38@adrian:junta.pladrian joined the room.
18 Jan 2020
03:03:21@petersjt014:matrix.orgpetersjt014 Hi:
I'm having some trouble with :io.format. I want to output a set of hex numbers with padding of zeroes. Right now this is what I have:
03:05:02@petersjt014:matrix.orgpetersjt014 Enum.each(0..16, fn i -> :io.format "2.16B~n", [i] end)
03:06:08@petersjt014:matrix.orgpetersjt014All of them are padded with spaces, the default. How do I pad with zeroes?
03:08:21@petersjt014:matrix.orgpetersjt014 The docs are here, but I can't figure out how to apply them to this situation: erlang.org/doc/man/io.html#type-format
03:42:23@hubert:uhoreg.cauhoreg Enum.each(0..16, fn i -> :io.format "~2.16.0B~n", [i] end)
03:52:38@petersjt014:matrix.orgpetersjt014Oh hey that works, thanks! I gotta ask though: the B is for base, how can it not be after the 16?
03:55:49@hubert:uhoreg.cauhoregThe B needs to be the last character of the control character, but it takes the base from the precision field, which comes before the pad field.
03:57:37@petersjt014:matrix.orgpetersjt014Ah. I get it now. Thanks again
19 Jan 2020
00:06:16@hanna:hackerspaces.behanna joined the room.
20 Jan 2020
15:28:36@MawKKe:matrix.orgMawKKe joined the room.

There are no newer messages yet.

Back to Room List