Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
- PipeSource is split into a StaticInputPipe and a PipeMiddle
// var characterFile = CharacterFile.From(fileName);
var fileName = new StaticInputPipe(fileName);
var characterFile = new FunctionPipe(CharacterFile.From, fileName);
// var configFile = ConfigFile.Matching(characterFile);
var configFile = new FunctionPipe(ConfigFile.Matching, characterFile);
// var partialCards = characterFile.ParseCards();
var partialCards = new FunctionPipe("CharacterFile.ParseCards", _ => _.ParseCards(), characterFile);
// var localCards = configFile.ParseCards();
var localCards = new FunctionPipe("ConfigFile.ParseCards", _=> _.ParseCards, configFile);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment