Skip to content

Instantly share code, notes, and snippets.

View floh1695's full-sized avatar
🌱

Charles Bayley floh1695

🌱
  • Florida
  • 18:23 (UTC -04:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am floh1695 on github.
  • I am floh1695 (https://keybase.io/floh1695) on keybase.
  • I have a public key whose fingerprint is 2AA8 4A6F 35A3 DCF1 4640 0A81 BAF9 305A 0441 DEA3

To claim this, I am signing this object:

@floh1695
floh1695 / mapExample.js
Last active March 19, 2018 21:02
Re-implementation of Array Higher Order Functions in JavaScript
const square = (number) => {
return number * number;
}
const double = (number) => {
return number * 2;
}
const map = (array, operation, thisArg = undefined) => {
const newArray = [];
using System;
using System.Collections.Generic;
abstract class Animal
{
public string Name { get; set; }
}
interface IThorny
{
using System.Linq;
class Kata
{
public static long MinValue(int[] a)
{
var numbers = a
.ToList()
.Distinct()
.OrderBy(n => n);
using System;
class Person
{
public string FirstName;
public string LastName;
public static Person operator +(Person leftPerson, Person rightPerson)
{
return new Person
module MultiplesOf3And5 where
solution :: Integer -> Integer
solution number = solutionInner (number - 1) 0
solutionInner :: Integer -> Integer -> Integer
solutionInner number total =
if number <= 0
then total
else solutionInner number' total'