Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JasonShin/fp-core.rs
/ functions
Functions
141 in github.com/JasonShin/fp-core.rs
⨍
Functions
141
◇
Types & classes
25
↓ 24 callers
Method
chain
(self, f: F)
fp-core/src/chain.rs:10
↓ 24 callers
Method
fmap
(self, f: F)
fp-core/src/functor.rs:10
↓ 19 callers
Method
combine
(self, other: Self)
fp-core/src/semigroup.rs:18
↓ 11 callers
Method
ap
(self, f: Applicator<B, Self>)
fp-core/src/apply.rs:11
↓ 10 callers
Method
reduce
(self, b: B, fa: F)
fp-core/src/foldable.rs:35
↓ 5 callers
Function
fold_map
Biggest hardship with trying to put this into the above: we cannot have B constrained to be a Monoid, so having a default implementation becomes impos
fp-core/src/foldable.rs:25
↓ 2 callers
Method
get
(s: &Person)
fp-examples/src/lens_example.rs:14
↓ 1 callers
Function
add
(x: i32)
fp-examples/src/currying_example.rs:3
↓ 1 callers
Method
extend
(self, f: W)
fp-core/src/extend.rs:11
↓ 1 callers
Method
extract
(self)
fp-core/src/extract.rs:6
↓ 1 callers
Function
get_item
(cart: &HashMap<String, HashMap<String, i32>>)
fp-examples/src/option_example.rs:12
↓ 1 callers
Function
get_nested_price
(cart: &HashMap<String, HashMap<String, i32>>)
fp-examples/src/option_example.rs:20
↓ 1 callers
Function
increment
(i: i32)
fp-examples/src/lambda_example.rs:3
↓ 1 callers
Method
reduce_right
TODO: make sure this is correct.
fp-core/src/foldable.rs:43
↓ 1 callers
Function
sum
Practical example: summing a list
fp-examples/src/monoid_example.rs:137
Function
add
(x: i32)
fp-examples/src/type_signature_example.rs:5
Function
adt_example
()
fp-examples/src/adt_example.rs:2
Function
anamorphism_example
()
fp-examples/src/anamorphism_example.rs:6
Function
applicative_example
()
fp-examples/src/applicative_example.rs:7
Function
applicative_example_on_result
()
fp-examples/src/applicative_example.rs:13
Function
arity
()
fp-examples/src/arity_example.rs:2
Function
call
(f: &dyn Fn(A) -> B)
fp-examples/src/type_signature_example.rs:17
Function
call2
(f: &'a dyn Fn(A) -> B)
fp-examples/src/type_signature_example.rs:23
Function
catamorphism_example
()
fp-examples/src/catamorphism_example.rs:2
Function
closure
()
fp-examples/src/closure_example.rs:2
Function
comonad_test
()
fp-examples/src/comonad_example.rs:7
Function
compose_two
(f: F, g: G)
fp-core/src/compose.rs:9
Function
concat
Practical example: concatenating strings
fp-examples/src/monoid_example.rs:150
Function
continuation
()
fp-examples/src/continuation_example.rs:2
Function
contracts_example
()
fp-examples/src/contracts_example.rs:2
Function
currying
()
fp-examples/src/currying_example.rs:2
Method
empty
()
fp-core/src/empty.rs:30
Function
empty_example_string
()
fp-examples/src/empty_example.rs:12
Function
empty_example_vec
()
fp-examples/src/empty_example.rs:6
Function
endomorphism_example
()
fp-examples/src/endomorphism_example.rs:2
Method
equals
(&self, other: &Self)
fp-core/src/setoid.rs:6
Function
fold_map_example
()
fp-examples/src/foldable_example.rs:23
Function
foldable_example
()
fp-examples/src/foldable_example.rs:16
Function
foo
(a: i32, b: i32, c: i32, d: i32, mul: i32, off: i32)
fp-examples/src/partial_application_example.rs:3
Function
foo
(a: i32)
fp-examples/src/monoid_example.rs:8
Function
function_composition
()
fp-examples/src/function_composition_example.rs:6
Function
get_price
(item: &HashMap<String, i32>)
fp-examples/src/option_example.rs:16
Function
hof
()
fp-examples/src/hof_example.rs:2
Function
homomorphism_example
()
fp-examples/src/homomorphism_example.rs:2
Function
idempotent_abs
()
fp-examples/src/idempotent_example.rs:16
Function
idempotent_sort
()
fp-examples/src/idempotent_example.rs:2
Function
identity
(a: A)
fp-core/src/identity.rs:1
Function
impure
()
fp-examples/src/purity_example.rs:9
Function
impure2
()
fp-examples/src/purity_example.rs:18
Function
increment
(x: i32)
fp-examples/src/type_signature_example.rs:11
Function
isomorphism_example
()
fp-examples/src/isomorphism_example.rs:9
Function
lambdas
()
fp-examples/src/lambda_example.rs:2
Function
lens_example
()
fp-examples/src/lens_example.rs:38
Function
main
()
fp-examples/src/main.rs:41
Function
map
(f: &dyn Fn(A) -> B)
fp-examples/src/type_signature_example.rs:29
Function
monad_example
()
fp-examples/src/monad_example.rs:8
Function
monad_example_on_result
()
fp-examples/src/monad_example.rs:14
Function
monoid_example
()
fp-examples/src/monoid_example.rs:13
Method
of
(x: T)
fp-examples/src/pointed_functor_example.rs:10
Method
of
(a: A)
fp-core/src/pure.rs:8
Function
option_example
()
fp-examples/src/option_example.rs:6
Method
over
(s: &S, f: &dyn Fn(Option<&A>) -> A)
fp-core/src/lens.rs:2
Function
partial_application
()
fp-examples/src/partial_application_example.rs:2
Function
pointed_functor_example
()
fp-examples/src/pointed_functor_example.rs:16
Function
predicate_example
()
fp-examples/src/predicate_example.rs:2
Function
purity
()
fp-examples/src/purity_example.rs:2
Function
referential_transparency
()
fp-examples/src/referential_transparency_example.rs:2
Method
set
(a: String, _s: &Person)
fp-examples/src/lens_example.rs:19
Function
setoid_example
()
fp-examples/src/setoid_example.rs:6
Function
side_effects
()
fp-examples/src/side_effects_example.rs:6
Function
test_applicative_homomorphism_option
()
fp-examples/src/applicative_example.rs:92
Function
test_applicative_identity_law_option
()
fp-examples/src/applicative_example.rs:83
Function
test_apply_with_type_change
()
fp-examples/src/applicative_example.rs:104
Function
test_chain_validation_pattern
()
fp-examples/src/monad_example.rs:110
Function
test_chain_with_functor_option
()
fp-examples/src/monad_example.rs:138
Function
test_empty_i32
()
fp-examples/src/monoid_example.rs:52
Function
test_empty_string
()
fp-examples/src/monoid_example.rs:58
Function
test_empty_vec
()
fp-examples/src/monoid_example.rs:64
Function
test_fold_map_empty_vec
()
fp-examples/src/foldable_example.rs:87
Function
test_fold_map_string_concat
()
fp-examples/src/foldable_example.rs:73
Function
test_fold_map_sum
()
fp-examples/src/foldable_example.rs:66
Function
test_fold_map_with_transformation
()
fp-examples/src/foldable_example.rs:80
Function
test_functor
()
fp-examples/src/functor_example.rs:29
Function
test_functor_composition_law_option
()
fp-examples/src/functor_example.rs:132
Function
test_functor_composition_law_result
()
fp-examples/src/functor_example.rs:147
Function
test_functor_for_result
()
fp-examples/src/functor_example.rs:38
Function
test_functor_identity_law_option
()
fp-examples/src/functor_example.rs:117
Function
test_functor_identity_law_result
()
fp-examples/src/functor_example.rs:125
Function
test_functor_with_closure
()
fp-examples/src/functor_example.rs:108
Function
test_monad_associativity_option
()
fp-examples/src/monad_example.rs:97
Function
test_monad_left_identity_option
()
fp-examples/src/monad_example.rs:77
Function
test_monad_right_identity_option
()
fp-examples/src/monad_example.rs:89
Function
test_monoid_left_identity_i32
()
fp-examples/src/monoid_example.rs:71
Function
test_monoid_left_identity_string
()
fp-examples/src/monoid_example.rs:87
Function
test_monoid_multiple_combines
()
fp-examples/src/monoid_example.rs:126
Function
test_monoid_right_identity_i32
()
fp-examples/src/monoid_example.rs:79
Function
test_monoid_right_identity_string
()
fp-examples/src/monoid_example.rs:94
Function
test_option_apply
()
fp-examples/src/applicative_example.rs:32
Function
test_option_apply_none_func
()
fp-examples/src/applicative_example.rs:48
Function
test_option_apply_none_value
()
fp-examples/src/applicative_example.rs:40
next →
1–100 of 141, ranked by callers