morphism = function = arrow category: objects and arrows source = origin of arrow target = destination of arrow
f :: A -> B
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <link | |
| href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | |
| rel="stylesheet" | |
| integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" | |
| crossorigin="anonymous" |
| import time | |
| import json | |
| import requests | |
| from lxml.html import fromstring | |
| def pokemon_get_type(tree): | |
| result = [] | |
| for _type in tree.cssselect('.itype'): |
| pub struct SimpleLinkedList<T> { | |
| head: Option<Box<Node<T>>>, | |
| } | |
| pub struct Node<T> { | |
| data: T, | |
| next: Option<Box<Node<T>>>, | |
| } | |
| impl<T> SimpleLinkedList<T> { |
| pub trait Functor<F, V> { | |
| fn fmap(self, func: F) -> V; | |
| } | |
| pub trait Monad<F, U> { | |
| fn bind(self, func: F) -> U; | |
| } | |
| pub trait Applicative<F, U> { | |
| fn lift(self, func: F) -> U; |
| ### Keybase proof | |
| I hereby claim: | |
| * I am jeffrey04 on github. | |
| * I am jeffrey04 (https://keybase.io/jeffrey04) on keybase. | |
| * I have a public key ASC07wQXJaYSGGd_4z8fMKdJLRkWl8-kMoK59_N7U_D9Kwo | |
| To claim this, I am signing this object: |
| #!/usr/bin/env php | |
| <?php | |
| function count_digits($number, $base = 10) { | |
| return get_n( | |
| $base, | |
| intval(is_string($number) ? strval($number) : $number, $base) | |
| ); | |
| } |