Gleam stdlib example not working : reference : https://hexdocs.pm/gleam_stdlib/index.html #1483
Replies: 1 comment 1 reply
-
I found the answer to this : Gleam stdlib example not working : reference : https://hexdocs.pm/gleam_stdlib/index.html The answer is very simple : I have to use So the code from https://hexdocs.pm/gleam_stdlib/index.html changed to >> pub fn usage() { } and the results are : //Fine but no main()... My question is How to make it completely correct program and how to use the main() here ? Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As usual :
gleam new gleam_stdlib_project
cd gleam_stdlib_project
No pub fn main() here..
Will it compile and test : No
The results are :
A.
B.
So no main() no invoke ,will not compile and can not run test.
The example is incomplete....given on this link https://hexdocs.pm/gleam_stdlib/index.html
How to rectify this �: I want to use both the private functions usage() and more_usage()
and moreover want to invoke them from Erlang shell via gleam shell..
Could you shed some light on it...
Thanks
Beta Was this translation helpful? Give feedback.
All reactions