This file contains 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
// ShortCipherSolver.cpp | |
#include <stdio.h> | |
#include <string.h> | |
void SolutionFound(char *solution, char *cipher); | |
void TrimBuffer(char *buffer); | |
void Solve(char *cipher); | |
// Solve ciphers provided as arguments to the command |
This file contains 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
using System; | |
namespace ToylModel20130322 | |
{ | |
public delegate TReturn ToylFunc<TReturn>(); | |
public delegate TReturn ToylFunc<T1, TReturn>(ISignature<T1> p1); | |
public delegate TReturn ToylFunc<T1, T2, TReturn>(ISignature<T1> p1, ISignature<T2> p2); | |
public interface ISignature<T> { | |
T Value(); |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace FunctionalTypes | |
{ | |
public static class FunctionalList | |
{ | |
public static FunctionalList<char> FromString(string s) |