Julia Sample Code
Sample txt files are located in the tests directory.
Included are a number of implementations of the word frequency functionality (wff) in Julia using dictionaries and user-defined types.
An additional implementation which uses user defined modules is also provided.
Start with wff_dict_verbose.jl chmod +x wff_dict_verbose.jl ./wff_dict_verbose.jl tests/* or julia -i wff_dict_verbose.jl tests/*
Dictionaries
wff_dict_verbose.jl
Verbose implementation of wff using dictionaries.
wff_dict.jl
Implementation of wff using dictionaries with compact code.
Types
wff_types.jl
Implementation of wff using types with compact code.
Modules
modules/wff.jl
A module which provides functions necessary for implementing wff.
wff_mod.jl
Implementation of WFF using modules.wff.jl