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
<?php | |
/** | |
* Class Afas | |
* | |
* This class has 3 static functions for accessing data using the Afas GetConnectors and UpdateConnectors. | |
* It includes the GET, POST and PUT request in their valid format. | |
* | |
* IMPORTANT: For it to work, remember to change the BASE_URL and TOKEN constants in the class. | |
* |
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
True = ->(a,b) {a} | |
False = ->(a,b) {b} | |
#Church encodings | |
zero = ->(f){->(x) {x}} | |
one = ->(f){->(x) { f.(x)}} | |
two = ->(f){->(x) { f.(f.(x))}} | |
three =->(f){->(x) { f.(f.(f.(x)))}} | |
#operations |