Re: jsoniopipe - exaples?

2023-12-30 Thread Zz via Digitalmars-d-learn
On Saturday, 30 December 2023 at 01:30:22 UTC, Steven Schveighoffer wrote: On Friday, 29 December 2023 at 08:09:58 UTC, Zz wrote: But yeah, I could ingest all the functionality from std.json there. Or maybe even just use `JSONValue` from std.json. Could you make an issue? -Steve Hi Steve,

jsoniopipe - exaples?

2023-12-29 Thread Zz via Digitalmars-d-learn
Hi, Here are some samples from the std.json documentation. Any idea on how to do something similar using jsoniopipe? Directly copied from https://dlang.org/phobos/std_json.html import std.conv : to; // parse a file or string of json into a usable structure string s = `{ "language": "D",

Question regarding mir.csv.

2023-11-01 Thread Zz via Digitalmars-d-learn
Hi, Currently using std.csv and would like to do the following using mir.csv. auto data = std.csv.csvReader!Layout(input).array; Are there any examples out there on using mir.csv? Regards, Zz

Re: How pretty-print a struct?

2022-03-31 Thread ZZ via Digitalmars-d-learn
On Thursday, 31 March 2022 at 16:08:19 UTC, mw wrote: On Thursday, 31 March 2022 at 06:35:15 UTC, ZZ wrote: Hi, Is there an easy way to pretty-print a struct which also includes arrays? pretty_array does a very good job for arrays. If you want the field variable names in the output, you

How pretty-print a struct?

2022-03-31 Thread ZZ via Digitalmars-d-learn
Hi, Is there an easy way to pretty-print a struct which also includes arrays? pretty_array does a very good job for arrays. ZZ

Re: Write native GUI applications for Windows

2017-12-18 Thread Zz via Digitalmars-d-learn
On Monday, 18 December 2017 at 08:49:51 UTC, Binghoo Dang wrote: On Monday, 18 December 2017 at 07:55:25 UTC, Andrey wrote: Hello! I have a question about creating native GUI applications for Windows 7 or/and Windows 10. I know that exist DWT, DlangUI and other... But I'm interesting in

Re: Guide - Migrating from std.experimental.ndslice to mir-algorithm

2017-06-03 Thread Zz via Digitalmars-d-learn
On Saturday, 3 June 2017 at 05:21:13 UTC, 9il wrote: On Friday, 2 June 2017 at 16:08:20 UTC, Zz wrote: Hi, Just tried migrating from std.experimental.ndslice to mir-algorithm. Is there a guide on how migrate old code? I used the following imports before and using then with ndslice.

Guide - Migrating from std.experimental.ndslice to mir-algorithm

2017-06-02 Thread Zz via Digitalmars-d-learn
Hi, Just tried migrating from std.experimental.ndslice to mir-algorithm. Is there a guide on how migrate old code? I used the following imports before and using then with ndslice. import std.experimental.ndslice; import std.algorithm : each, max, sort; import std.range : iota, repeat;

Re: ndslice help

2016-02-18 Thread Zz via Digitalmars-d-learn
On Thursday, 18 February 2016 at 02:24:20 UTC, ZombineDev wrote: On Thursday, 18 February 2016 at 00:25:09 UTC, Zz wrote: Hi, I'm trying to generate the following sequences with ndslice. 0 0 0 1 1 1 1 1 1 0 0 0 0 1 2 0 1 2 2 1 0 2 1 0 It's okay with loops but was checking to see if it's

ndslice help

2016-02-17 Thread Zz via Digitalmars-d-learn
Hi, I'm trying to generate the following sequences with ndslice. 0 0 0 1 1 1 1 1 1 0 0 0 0 1 2 0 1 2 2 1 0 2 1 0 It's okay with loops but was checking to see if it's possible with ndslice. Zz

ndslice help.

2015-12-30 Thread Zz via Digitalmars-d-learn
Hi, Just playing with ndslice and I couldn't figure how to get the following transformations. given. auto slicea = sliced(iota(6), 2, 3, 1); foreach (item; slicea) { writeln(item); } which gives. [[0][1][2]] [[3][4][5]] what transformation should i do to get the following from slicea.

Re: ndslice help.

2015-12-30 Thread Zz via Digitalmars-d-learn
On Wednesday, 30 December 2015 at 20:43:21 UTC, Ilya Yaroshenko wrote: On Wednesday, 30 December 2015 at 18:53:15 UTC, Zz wrote: Hi, Just playing with ndslice and I couldn't figure how to get the following transformations. given. auto slicea = sliced(iota(6), 2, 3, 1); foreach (item;