Skip to content

Instantly share code, notes, and snippets.

@rxwei
rxwei / ad-manifesto.md
Last active November 9, 2023 09:58
First-Class Automatic Differentiation in Swift: A Manifesto
@repeatedly
repeatedly / fizzbuzz.d
Created August 9, 2012 07:41
FizzBuzz based on tanakh's Haskell
import std.algorithm, std.conv, std.range, std.stdio;
// FizzBuzz from http://ideone.com/ciKtm
// I cannot port 'f <> b <|> n'
void main()
{
auto fizz = cycle([null, null, "Fizz"]);
auto buzz = cycle([null, null, null, null, "Buzz"]);
auto nums = map!(to!string)(iota(1, 101));