Re: Web APis

2023-12-31 Thread Alexandru Ermicioi via Digitalmars-d-learn
On Sunday, 31 December 2023 at 04:40:02 UTC, Axel Casillas wrote: Hi there, I'm trying to implement web api's into a terminal program. With some help at the IRC have gotten pretty far but just hit a roadblock trying to manipulate the web api to accept input from the user. Example: auto

Re: How to implement filterMap

2023-12-31 Thread Alexandru Ermicioi via Digitalmars-d-learn
On Sunday, 31 December 2023 at 09:47:27 UTC, Siarhei Siamashka wrote: Also take a look at the `c` array. The handling of arithmetic overflows is a safety problem of the D language design. Certain types of input may cause overflows, which result in producing bogus data as a result of running

Re: How to implement filterMap

2023-12-31 Thread Siarhei Siamashka via Digitalmars-d-learn
On Sunday, 31 December 2023 at 09:47:27 UTC, Siarhei Siamashka wrote: On Saturday, 30 December 2023 at 13:25:00 UTC, Christian Köstlin wrote: The "original" https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.filter_map works with the Option(Some/None) ... Here's an example with

Re: Web APis

2023-12-31 Thread ryuukk_ via Digitalmars-d-learn
nvm, that's not what you are asking for

Re: Web APis

2023-12-31 Thread ryuukk_ via Digitalmars-d-learn
On Sunday, 31 December 2023 at 04:40:02 UTC, Axel Casillas wrote: Hi there, I'm trying to implement web api's into a terminal program. With some help at the IRC have gotten pretty far but just hit a roadblock trying to manipulate the web api to accept input from the user. Example: auto

Re: How to implement filterMap

2023-12-31 Thread Siarhei Siamashka via Digitalmars-d-learn
On Saturday, 30 December 2023 at 13:25:00 UTC, Christian Köstlin wrote: On Saturday, 30 December 2023 at 01:22:31 UTC, Siarhei Siamashka wrote: On Friday, 29 December 2023 at 23:10:47 UTC, Christian Köstlin wrote: Is there a way to implement filterMap (meaning do mapping of a range, but if