- Devil by the Well / Licho przy studni (2)
- Woodland Beast / Potwór z lasu (6)
- Patrol Gone Missing / Zaginiony patrol (7)
| (def uuid #"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$") | |
| (def amount #"^\d+(,\d{3})*(\.\d{2})?$") | |
| (def currency #"^[a-zA-Z]{3}$") |
| -module(partial). | |
| -export([partial/2]). | |
| -export([test/0]). | |
| -spec partial(function(), [term()]) -> function(). | |
| partial(Fun, Args) when is_function(Fun), is_list(Args) -> | |
| lists:foldl(fun partial1/2, Fun, Args). |
Speak to Eileen in the sewer and Little Girl for the Music Box, then defeat Cleric Beast and Father Gascoigne.
| #{"BIF" ;; Burundian Franc | |
| "CLP" ;; Chilean Peso | |
| "DJF" ;; Djiboutian Franc | |
| "GNF" ;; Guinean Franc | |
| "JPY" ;; Japanese Yen | |
| "KMF" ;; Comorian Franc | |
| "KRW" ;; South Korean Won | |
| "MGA" ;; Malagasy Ariary | |
| "PYG" ;; Paraguayan Guaraní | |
| "RWF" ;; Rwandan Franc |
| -module(fizzbuzz). | |
| -export([print/0]). | |
| print() -> | |
| FizzBuzz = [fizzbuzz(N) || N <- lists:seq(1, 100)], | |
| io:format("~s~n", [string:join(FizzBuzz, ", ")]). | |
| fizzbuzz(X) -> |
| reverse([], Acc) -> | |
| Acc; | |
| reverse([X | Xs], Acc) -> | |
| reverse([X | Acc], Xs). | |
| reverse(Xs) -> | |
| reverse(Xs, []). | |
| %% OR |
| erlcql:start_link(ConnectionOpts :: proplist()) -> {ok, Pid :: pid()} | {error, Reason :: term()}. | |
| erlcql:q(Pid :: pid(), Query :: bitstring(), RequestOpts :: proplist()) -> | |
| {ok, Response :: response(), Extra :: extra} | | |
| {error, {Code :: integer, Message :: bitstring()}, Extra :: extra()}. | |
| -type response() :: void %% response to INSERT/UPDATE/DELETE/TRUNCATE | |
| | Keyspace :: bitstring() %% response to USE | |
| | SchemaChange :: created | updated | dropped %% response to CREATE/ALTER/DROP | |
| | {Rows :: [[term()]], Cols :: [{Name :: bitstring(), Type :: type()}]}. %% response to SELECT |