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
(defmodule homework (export letters)) | |
(defun lut (x) | |
(: lists nth (- x (car '"/")) | |
'("0" | |
"1" "abc" "def" | |
"ghi" "jkl" "mno" | |
"pqrs" "tuv" "wxyz"))) | |
(defun letters |
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
{excl_sys_filters, ["^bin/.*", "^erts.*/bin/(dialyzer|typer)", | |
"^.git/.*"]}, | |
{excl_archive_filters, [".*"]}, |
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
ak@rifter:~/code/erl/erlang_rebar_example_project$ rebar generate-upgrade previous_release=dummynode_first -v | |
DEBUG: Rebar location: "/home/ak/bin/rebar" | |
DEBUG: Entering /home/ak/code/erl/erlang_rebar_example_project | |
DEBUG: Available deps: [] | |
DEBUG: Missing deps : [] | |
DEBUG: Predirs: ["/home/ak/code/erl/erlang_rebar_example_project/apps/dummy_app", | |
"/home/ak/code/erl/erlang_rebar_example_project/rel"] | |
DEBUG: Entering /home/ak/code/erl/erlang_rebar_example_project/apps/dummy_app | |
DEBUG: Available deps: [] | |
DEBUG: Missing deps : [] |
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
%% @doc Function description. | |
-spec f( Item::type() % description of item | |
, Action::type() % yet another description | |
... | |
) -> type() % blah | |
f(Item,Action) -> |
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
> (c 'trace) | |
#(module trace) | |
> (l 'trace) | |
(#(module trace)) | |
> (: trace start) | |
IN [ myfunc, x=0 ] | |
IN [ myfunc, x=1 ] | |
IN [ myfunc, x=2 ] | |
IN [ myfunc, x=3 ] | |
OUT[ myfunc, x=3 => 0 ] |
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
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-} | |
import Data.Vector as V | |
import Data.Word | |
import Data.Bits | |
data Instr = Seed Word32 | |
| Mutate Word32 | |
| JmpFwd Word16 | |
| JmpRev Word16 |
NewerOlder