Skip to content

Commit

Permalink
Merge pull request #14 from wavebitscientific/feature/support-strings
Browse files Browse the repository at this point in the history
Feature/support strings
  • Loading branch information
milancurcic authored Dec 20, 2018
2 parents afa0e56 + 8bca166 commit c977b45
Show file tree
Hide file tree
Showing 32 changed files with 3,161 additions and 2,839 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# cmake version, project name, language
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(functional-fortran)
enable_language(Fortran)
project(functional-fortran Fortran)

# set output paths for modules, archives, and executables
set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/include)
Expand Down Expand Up @@ -40,7 +39,7 @@ add_library(testing src/tests/mod_testing.f90)

# tests
enable_testing()
foreach(execid arange complement empty filter foldl foldr foldt head init insert intersection iterfold last limit map reverse set sort split subscript tail unfold union)
foreach(execid arange arrstr complement empty filter foldl foldr foldt head init insert intersection iterfold last limit map reverse set sort split strarr subscript tail unfold union)
add_executable(test_${execid} src/tests/test_${execid}.f90)
target_link_libraries(test_${execid} functional testing)
add_test(test_${execid} bin/test_${execid})
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2016-2017, Wavebit Scientific LLC
Copyright (c) 2016-2018, Milan Curcic
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ All of the above functions are compatible with the standard Fortran 2008 kinds:
`int8`, `int16`, `int32`, `int64`, `real32`, `real64`, `real128`,
`complex(real32)`, `complex(real64)`, and `complex(real128)`.

Further, these functions (and their corresponding operators)
are compatible with character strings:
`complement`, `empty`, `head`, `init`, `intersection`, `insert`,
`last`, `reverse`, `set`, `sort`, `split`, `tail`, and `union`.

Functions that operate on one or two arguments are also available as
unary or binary operators, respectively. These are:
`.complement.`, `.head.`, `.init.`, `.intersection.`, `.last.`,
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.4.0
Loading

0 comments on commit c977b45

Please sign in to comment.