ABOUT THIS EPISODE
03: Lists
Handling Lists
- Before we get started a couple tips for shorthand in Prelude
* > GHCi is an interactive Haskell REPL (Read-Eval-Print-Loop) that comes with GHC. At the GHCi prompt, you can evaluate expressions, load Haskell files with :load (:l) (and reload them with :reload (:r)), ask for the type of an expression with :type (:t), and many other things (try :? for a list of commands).
* using
letin the GHCI-
Words are are a list of chars
-
In Haskell, lists are a homogenous data structure. It stores several elements of the same type.
-
One of the most basic data types in Haskell
- List comprehensions?
- Like set comprehensions, normally used for building more specific sets from a larger general set *
-
List Constructing
- we should mention type signatures too
- NOT AN ARRAY
- ugh, what’s this mean
intListLength (x:xs) = 1 + intListLength xs
-
- JavaScript to Haskell
- Twitter: @jstoHaskell()
- Site: JSToHaskell
- microblog: [@jtomchak](https://micro.blog/jtomchak)
- Jesse Tomchak
English
United States
TRANSCRIPT 🔗
Are you the producer of this podcast?
Add a podcast transcript
Need Audio-to-Text?
Transcribe with Listen411 in Just 60 Seconds
SEARCH PAST EPISODES
Search past episodes of JavaScript to Haskell.
OTHER EPISODES IN THIS PODCAST
Episode 1:
Learning path github.com/bitemyapp…
Functional
Two values of functional
Functions are first-class, that is, functions are values which can be used in exactly the same ways as any other sort of value.
The meaning of Haskell programs is …
04: Practical Haskell
So, following the book is hard. I don’t really learn well that way. I have just enough knowledge that the first part feels boring and repetitive, but I don’t know what I don’t know, so where do I pick up, chapter 2 or maybe 3? So let’s take this from a real JS perspective.
…
02: Haskell Tools
Install
stack looks to be the sort of NPM of haskell
reproduceable builds,
YAML file config. cabal config too
Command Line
stack build and then stack exec hello-world-exe
the build will create an executable in the ./stack-work and look ther…
Disclaimer: The podcast and artwork embedded on this page are from Jesse Tomchak, which is the property of its owner and not affiliated with or endorsed by Listen Notes, Inc.
EDIT
Thank you for helping to keep the podcast database up to date.