This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <stdio.h> | |
| #import <sys/sysctl.h> | |
| #import <unistd.h> | |
| #import <Foundation/Foundation.h> | |
| #import <CoreGraphics/CoreGraphics.h> | |
| /* Returns the parent of any arbitrary process, more flexible than | |
| * getpid() and getppid(). | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Abstract representation of success or failure. | |
| * | |
| * @remarks | |
| * Provides a fluid interface for chaining and working with errors that | |
| * is easier to read than long chains of null and undefined checks. | |
| */ | |
| export abstract class Result<T, E> { | |
| /** @return a new result representing a successful calculation. */ | |
| static ok<T, E = never>(value: T): Result<T, E> { |
OlderNewer