shotleybuilder
Exploring Graphs with Elixir: suggestion: have complete code available for download p45
When I run NativeGraph.[TAB] my output is:
MixProject hello/0 read_graph/1 write_graph/2
Which is because most of the functions are not defined in the macro. And in fact my query.ex doesn’t even include e.g. list_queries/1 to make available.
The code to make this work in full isn’t present in the download.
I’d suggest making the complete code available for download so at least I can copy (cheat) and get the same output as the book.
NB Not sure where that MixProject came from!
First Post!
pragmoose
I got stuck here too. I was able to implement most of them, but I’m confused by new_graph/1.
I assume that new_graph/2 is a straightforward wrapper around GraphCommons.Graph.new. I would guess that new_graph/1 is derived from new_graph/2 via some default value for one of the arguments of GraphCommons.Graph.new, but it has no default values.
Re your NB, the MixProject module is defined in apps/native_graph/mix.exs, which was generated by
$ mix new native_graph.
Popular Pragmatic Bookshelf topics
Other popular topics
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
- /flutter
- /elm
- /vscode
- /ash
- /html
- /opensuse
- /centos
- /php
- /zig
- /deepseek
- /scala
- /sublime-text
- /textmate
- /lisp
- /react-native
- /nixos
- /debian
- /agda
- /kubuntu
- /arch-linux
- /deno
- /django
- /revery
- /ubuntu
- /nodejs
- /spring
- /manjaro
- /diversity
- /lua
- /julia
- /c
- /slackware







