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
let words numOfChars alphabet = []:[ b++[c] | numOfChars > 0, b <-words (numOfChars-1) alphabet, c <- alphabet ] | |
words 3 "ab" |
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
--human "socrat" = True | |
--human "platon" = True | |
--human "a" = True | |
--human _ = False | |
--mortal x = human x | |
--wordsgen numOfChars alphabet = []:[ b++[c] | numOfChars > 0, b <-wordsgen (numOfChars-1) alphabet, c <- alphabet ] | |
--alphabet = "abcdefghijklmnopqrstuvwxyz" |
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 copy | |
# Имплементация прототип ориентированного internal DSL для Python по мотивам Io Language http://habrahabr.ru/blogs/crazydev/28041/ | |
# Implementation of prototype oriented internal DSL for python based on article about Io Language http://habrahabr.ru/blogs/crazydev/28041/ | |
class IoObject(dict): | |
def __init__(self): | |
self.clone = copy.copy | |
def __getattr__(self, attr): | |
if 'get_slot' in self: | |
val = self["get_slot"](attr)#может вызвать бесконечность / infinite loop can occur |
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
using System; | |
using System.Collections.Generic; | |
namespace Trampoline | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
for (long m = 0; m <= 3; ++m) |
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
objects = test.o | |
edit : $(objects) | |
cc -o edit $(objects) | |
$(objects) : | |
.PHONY : clean | |
clean : | |
-rm edit $(objects) |
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
using System.Collections.Generic; | |
using System; | |
using System.Linq; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace FpCs | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Reactive.Subjects; | |
using System.Reactive.Linq; | |
namespace FpCs | |
{ | |
class Program |
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
// Learn more about F# at http://fsharp.net | |
namespace ExampleTypeProvider.DesignTime | |
open System | |
open System.Collections.Generic | |
open System.Linq.Expressions | |
open System.Globalization | |
open System.Reflection | |
open System.Diagnostics | |
open Microsoft.FSharp.Core.CompilerServices |
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
namespace FilesTypeProvider | |
open System.Reflection | |
open Microsoft.FSharp.Core.CompilerServices | |
open Samples.FSharpPreviewRelease2011.ProvidedTypes | |
open System.Text.RegularExpressions | |
[<TypeProvider>] | |
type public CheckedFilesProvider() as this = |
OlderNewer