View fromIntegral.md

Hello folks, I have the following code, and I am having trouble understanding how fromIntegral is functioning:

avgDb :: [DatabaseItem] -> Double
avgDb dataBase = dividend / divisor
                 where dividend = fromIntegral $ sumDb dataBase
                       divisor = fromIntegral $ length $ filterDbNumber dataBase

Note that sumDb :: [DatabaseItem] -> Integer and filterDbNumber :: [DatabaseItem] -> [Integer].

View unverified_error.hs
-- Page 12 on the 0.12.0-screen version of the book
-- You start step 2 with the following lambda:
(\x.\y.\z.xy(yz))(\m.\n.\m)(\p.p)
-- You then reduce it, in step 3 to the following:
(\y.\z(\m.\n.\m)z(yz))(\p.p)
-- I believe that this reduce is missing a period after the first z, and instead should read like so:
(\y.\z.(\m.\n.\m)z(yz))(\p.p)
View keybase.md

Keybase proof

I hereby claim:

  • I am stevenxl on github.
  • I am stevenxl (https://keybase.io/stevenxl) on keybase.
  • I have a public key whose fingerprint is 9520 A429 3F63 17DD 47A8 7765 92CD EE68 A369 3DFA

To claim this, I am signing this object:

View process_registry_v06.exs
defmodule ProcessRegistry do
import Kernel, except: [send: 2]
use GenServer
# Client API #
def start_link do
GenServer.start_link(__MODULE__, nil, name: :registry)
end
View process_registry_v05.exs
defmodule ProcessRegistry do
use GenServer
# Client API #
def start_link do
GenServer.start_link(__MODULE__, nil, name: :registry)
end
def register_name(key, pid) when is_pid(pid) do
GenServer.call(:registry, {:register_name, key, pid})
View process_registry_v04.exs
defmodule ProcessRegistry do
use GenServer
# Client API #
def start_link do
GenServer.start_link(__MODULE__, nil, name: :registry)
end
def register_name(key, pid) when is_pid(pid) do
GenServer.call(:registry, {:register_name, key, pid})
View process_registry_v03.exs
defmodule ProcessRegistry do
use GenServer
# Client API #
def start_link do
GenServer.start_link(__MODULE__, nil, name: :registry)
end
def register_name(key, pid) when is_pid(pid) do
GenServer.call(:registry, {:register_name, key, pid})
View process_registry_v02.exs
defmodule ProcessRegistry do
use GenServer
# Client API #
def start_link do
GenServer.start_link(__MODULE__, nil, name: :registry)
end
def register_name(key, pid) when is_pid(pid) do
GenServer.call(:registry, {:register_name, key, pid})
View gen_server_supervisor_rev_02.ex
defmodule GenServerSupervisor do
use GenServer
# Client API #
def start_link(child_specs_list) do
GenServer.start_link(__MODULE__, child_specs_list)
end
# Server API #
View gen_server_supervisor_rev_01.ex
defmodule GenServerSupervisor do
use GenServer
# Client API #
def start_link do
GenServer.start_link(__MODULE__, [])
end
# Server API #