 
  		        dewetblomerus
Programming Elixir 1.6: Missing a terminating ] (page 72)
It is the first example on page 72, the one with the highlighting.
[ 1  | [ 2 | [ 3 | [] ] ]
Needs to be changed to:
[ 1  | [ 2 | [ 3 | [] ] ] ]
4 opening square brackets and 4 closing square brackets.
Two rows down, there is a working example so hopefully, people have been using that to actually copy/paste the example, but I was trying to understand the recursive list structure and this tripped me up for a moment before I realized what is going on.
First Post!
 
		        Margaret
									Editor at PragProg
			          
						Hi @dewetblomerus. Thanks for finding that mistake! The author isn’t here on Devtalk, but I will make note of the erratum in case we ever do a new edition.
Popular Pragmatic Bookshelf topics
                         
                      
                       
          
                Running the examples in chapter 5 c under pytest 5.4.1 causes an AttributeError: ‘module’ object has no attribute ‘config’. 
In particula...
              
            
            
          
              New
 
          
                Hi Jamis, 
I think there’s an issue with a test on chapter 6. I own the ebook, version P1.0 Feb. 2019. 
This test doesn’t pass for me: 
 ...
              
            
            
          
              New
 
          
                Hi! I know not the intentions behind this narrative when called, on page XI: 
mount() |> handle_event() |> render()
but the correc...
              
            
            
          
              New
 
          
                On the page xv there is an instruction to run bin/setup from the main folder. I downloaded the source code today (12/03/21) and can’t see...
              
            
            
          
              New
 
          
                I think I might have found a problem involving SwitchCompat, thumbTint, and trackTint. 
As entered, the SwitchCompat changes color to hol...
              
            
            
          
              New
 
          
                When installing Cards as an editable package, I get the following error: 
ERROR: File “setup.py” not found. Directory cannot be installe...
              
            
            
          
              New
 
          
                Is there any place where we can discuss the solutions to some of the exercises? I can figure most of them out, but am having trouble with...
              
            
            
          
              New
 
          
                When running the program in chapter 8, “Implementing Combat”, the printout Health before attack was never printed so I assumed something ...
              
            
            
          
              New
 
          
                @mfazio23
I’ve applied the changes from Chapter 5 of the book and everything builds correctly and runs. But, when I try to start a game,...
              
            
            
          
              New
 
          
                Hello faithful readers!  If you have tried to follow along in the book, you are asked to start up the dev environment via dx/build and ar...
              
            
            
          
              New
Other popular topics
                         
                      
                       
          
                SpaceVim seems to be gaining in features and popularity and I just wondered how it compares with SpaceMacs in 2020 - anyone have any thou...
              
            
            
          
              New
 
          
                Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: 
Perhaps if there’s enough peop...
              
            
            
          
              New
 
          
                Rust is an exciting new programming language combining the power of C with memory safety, fearless concurrency, and productivity boosters...
              
            
            
              
          
              New
 
          
                Thanks to @foxtrottwist’s and @Tomas’s posts in this thread: Poll: Which code editor do you use? I bought Onivim! :nerd_face: 
https://on...
              
            
            
          
              New
 
          
                Author Spotlight 
Rebecca Skinner 
@RebeccaSkinner 
Welcome to our latest author spotlight, where we sit down with Rebecca Skinner, auth...
              
            
            
          
              New
New
 
          
                Author Spotlight: 
VM Brasseur 
@vmbrasseur 
We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
              
            
            
          
              New
 
          
                Author Spotlight: 
Peter Ullrich 
@PJUllrich 
Data is at the core of every business, but it is useless if nobody can access and analyze ...
              
            
            
          
              New
 
          
                Big O Notation can make your code faster by orders of magnitude. Get the hands-on info you need to master data structures and algorithms ...
              
            
            
              
          
              New
 
          
                Node.js v22.14.0 has been released. 
Link: Release 2025-02-11, Version 22.14.0 'Jod' (LTS), @aduh95 · nodejs/node · GitHub
              
            
            
              
          
              New
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /ruby
- /wasm
- /erlang
- /phoenix
- /keyboards
- /python
- /rails
- /js
- /security
- /go
- /swift
- /vim
- /clojure
- /emacs
- /haskell
- /java
- /svelte
- /onivim
- /typescript
- /kotlin
- /c-plus-plus
- /crystal
- /tailwind
- /react
- /gleam
- /ocaml
- /elm
- /flutter
- /vscode
- /ash
- /html
- /opensuse
- /centos
- /php
- /zig
- /deepseek
- /scala
- /lisp
- /textmate
- /sublime-text
- /react-native
- /nixos
- /debian
- /agda
- /kubuntu
- /arch-linux
- /django
- /revery
- /deno
- /ubuntu
- /spring
- /manjaro
- /nodejs
- /diversity
- /lua
- /julia
- /slackware
- /c
 
           
    





