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
var context = require.context('./Scripts/Sources/', true, /^\.\/.*\.js$/); | |
var _ = require('underscore'); | |
window.require = function (m, callback) { | |
if (_.isFunction(callback)) { | |
if (_.isArray(m)) { | |
callback(_.map(m, window.require)); | |
} else { | |
callback(window.require(m)); | |
} |
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
class Parent { } | |
class A : Parent { public string A { get; private set; } } | |
class B : Parent { public string B { get; private set; } } | |
class C : Parent { public string C { get; private set; } } | |
public class Test | |
{ | |
public string TestWithoutFuncSharp(Parent p) | |
{ | |
var a = p as A; |
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.Threading.Tasks; | |
namespace FuncSharp | |
{ | |
public interface IFunctor<FA, FB, A, B> | |
{ | |
FB Map(FA fa, Func<A, B> f); |