Skip to content

Instantly share code, notes, and snippets.

class UpdateEntityDto : IValidateableDto, CreateEntityDto {
}
class ValidateEntities {
public bool Validate(IValidateableDto dto) {
return false;
}
public bool Validate(CreateEntityDto dto) {
function makeAdd(a) {
return function(b) {
return a + b;
}
}
var addFour = makeAdd(4);
addFour(6); // outputs 10
function makeAdd(number) {
return function(secondNumber) {
return number + secondNumber;
}
}
let addTwo = makeAdd(2);
let addThree = makeAdd(3);
4 == addTwo(2);
[1 of 1] Compiling Main ( Main.hs, interpreted )
Main.hs:27:17:
Couldn't match expected type ‘[Statement]’
with actual type ‘IO Statement’
In a stmt of a 'do' block:
stmt <- prepare conn "INSERT into ingredient VALUE(?)"
In the expression:
do { stmt <- prepare conn "INSERT into ingredient VALUE(?)";
mapM (\ [label] -> return $ execute stmt [label]) values }

Keybase proof

I hereby claim:

  • I am philwade on github.
  • I am phil_wade (https://keybase.io/phil_wade) on keybase.
  • I have a public key whose fingerprint is 43DE 686A 6BD0 507B 34C5 7D60 CB02 C656 B1CF 00AB

To claim this, I am signing this object: