Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

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