23 people like it.

A simple Quine

A simple Quine in F#

1: 
2: 
let s : Printf.TextWriterFormat<_> = "let s : Printf.TextWriterFormat<_> = %c%s%c in
printf s (char 34) (s.Value) (char 34)" in printf s (char 34) (s.Value) (char 34)
val s : Printf.TextWriterFormat<(char -> string -> char -> unit)>
module Printf

from Microsoft.FSharp.Core
type TextWriterFormat<'T,'Result> = Format<'T,System.IO.TextWriter,unit,'Result>

Full name: Microsoft.FSharp.Core.PrintfModule.TextWriterFormat<_,_>
val printf : format:Printf.TextWriterFormat<'T> -> 'T

Full name: Microsoft.FSharp.Core.ExtraTopLevelOperators.printf
Multiple items
val char : value:'T -> char (requires member op_Explicit)

Full name: Microsoft.FSharp.Core.Operators.char

--------------------
type char = System.Char

Full name: Microsoft.FSharp.Core.char
property PrintfFormat.Value: string
Raw view Test code New version

More information

Link:http://fssnip.net/2h
Posted:13 years ago
Author:Nick Palladinos
Tags: quine