Re: Using map result type

2019-12-09 Thread AA via Digitalmars-d-learn
On Sunday, 8 December 2019 at 01:43:43 UTC, mipri wrote: On Sunday, 8 December 2019 at 01:10:21 UTC, AA wrote: [...] In general this is what you want to do with any kind of range code, because you're not working with definite types, but with types that have certain properties. And an advantage

Using map result type

2019-12-07 Thread AA via Digitalmars-d-learn
I'd like to accept the return type of map. From some previous questions that I should accept a template? So for something like: ``` void mapAccepter(Range)(Range r) { import std.array : array; import std.stdio : writeln; auto collected = r.array; writeln(collected); } void main

Re: How to make a progressbar with DWT?

2016-02-27 Thread aa via Digitalmars-d-learn
On Saturday, 27 February 2016 at 09:09:59 UTC, xky wrote: Hello :-) Well.. In java with SWT case, used asyncExec and Runnable class. how can i do processing? sorry i misunderstood your question, so please ignore about link.

Re: How to make a progressbar with DWT?

2016-02-27 Thread aa via Digitalmars-d-learn
On Saturday, 27 February 2016 at 09:09:59 UTC, xky wrote: Hello :-) Well.. In java with SWT case, used asyncExec and Runnable class. how can i do processing? https://github.com/d-widget-toolkit/org.eclipse.swt.snippets/blob/4d3e76073e1901622dec80b6a3e24eebbaf6b68d/src/org/eclipse/swt/snippets/S