| Thread overview | |||||
|---|---|---|---|---|---|
|
July 31, 2017 How to test tuple in chain | ||||
|---|---|---|---|---|
| ||||
Hello! If I want testing tuple member in functional manner, what I shoul do? Example: "ls -l".executeShell returns me tuple (int "status", string "output") I want write somthing like: "ls -l".executeShell.smthTestingOperation!"Error: bad status."( res => res.status==0 ).output.writeln; (where "smthTestingOperation" - is function which I want to find in std ) | ||||
July 31, 2017 Re: How to test tuple in chain | ||||
|---|---|---|---|---|
| ||||
Posted in reply to closescreen | I read my message. Sorry for my poor english and typos. | |||
July 31, 2017 Re: How to test tuple in chain | ||||
|---|---|---|---|---|
| ||||
Posted in reply to closescreen | On Monday, 31 July 2017 at 12:23:02 UTC, closescreen wrote:
> I read my message. Sorry for my poor english and typos.
use res[0] and res[1] to get res.status and the res.output.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply