Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Hands-On-Functional-Programming-with-Typescript
/ functions
Functions
217 in github.com/PacktPublishing/Hands-On-Functional-Programming-with-Typescript
⨍
Functions
217
◇
Types & classes
90
↓ 16 callers
Method
map
(fn: (val: T) => TMap)
chapters/chapter_07_category_theory/04_either.ts:37
↓ 15 callers
Function
add
(foo: number, bar: number, foobar: number = 0)
chapters/chapter_02_mastering_functions/06_rest_parameters.ts:3
↓ 14 callers
Method
get
(o: T1)
chapters/chapter_08_optics_immutability_laziness/02_lenses.ts:30
↓ 13 callers
Function
fn
()
chapters/chapter_03_mastering_async_programming/07_async_await.ts:5
↓ 12 callers
Method
set
(o: T2, v: T1)
chapters/chapter_08_optics_immutability_laziness/02_lenses.ts:31
↓ 12 callers
Method
value
()
chapters/chapter_05_closures_and_prototypes/05_closures.ts:37
↓ 10 callers
Method
join
()
chapters/chapter_07_category_theory/05_monads.ts:55
↓ 9 callers
Method
get
(o: T1)
chapters/chapter_08_optics_immutability_laziness/03_prisms.ts:45
↓ 7 callers
Method
map
(fn: (val: T) => TMap)
chapters/chapter_07_category_theory/03_maybe.ts:21
↓ 7 callers
Method
map
(fn: (val: T) => TMap)
chapters/chapter_07_category_theory/05_monads.ts:43
↓ 6 callers
Function
add
(foo: number, bar: number, foobar: number)
chapters/chapter_02_mastering_functions/04_optional_parameters.ts:3
↓ 6 callers
Method
find
(filter: (item: T) => boolean)
chapters/chapter_01_fp_fundamentals/04_immutability.ts:30
↓ 5 callers
Method
set
(a: T2, o: T1)
chapters/chapter_08_optics_immutability_laziness/03_prisms.ts:46
↓ 4 callers
Method
_deepCloneItem
(item: T)
chapters/chapter_01_fp_fundamentals/04_immutability.ts:5
↓ 4 callers
Function
add
(a: number, b: number)
chapters/chapter_06_fp_techniques/02_partial_application.ts:3
↓ 4 callers
Method
chain
(fn: (val: T) => TMap)
chapters/chapter_07_category_theory/05_monads.ts:59
↓ 4 callers
Function
changeBy
(val: number)
chapters/chapter_05_closures_and_prototypes/05_closures.ts:91
↓ 4 callers
Function
compose
( f: (x: T2) => T3, g: (x: T1) => T2)
chapters/chapter_06_fp_techniques/02_partial_application.ts:48
↓ 4 callers
Function
compose
(f: (x: T) => T, g: (x: T) => T)
chapters/chapter_06_fp_techniques/01_composition.ts:17
↓ 4 callers
Function
foo
()
chapters/chapter_02_mastering_functions/09_function_scope.ts:3
↓ 4 callers
Function
func
()
chapters/chapter_03_mastering_async_programming/09_for_await_of.ts:9
↓ 4 callers
Method
increment
()
chapters/chapter_05_closures_and_prototypes/05_closures.ts:29
↓ 4 callers
Method
of
(val?: TVal)
chapters/chapter_07_category_theory/05_monads.ts:27
↓ 4 callers
Function
test
(value: (string|number|boolean))
chapters/chapter_02_mastering_functions/07_function_overloading.ts:6
↓ 3 callers
Function
avg
(arr: Result[])
chapters/chapter_01_fp_fundamentals/03_declarative_vs_imperative.ts:14
↓ 3 callers
Function
bar
(b: number)
chapters/chapter_04_the_event_loop_and_this_operator/02_event_loop.ts:8
↓ 3 callers
Function
doSomethingAsync
()
chapters/chapter_03_mastering_async_programming/08_asynchronous_generators.ts:5
↓ 3 callers
Function
find
(arr: T[], filter: (i: T) => boolean)
chapters/chapter_01_fp_fundamentals/06_first_class_citizens.ts:3
↓ 3 callers
Method
map
(fn: (val: T) => TMap)
chapters/chapter_07_category_theory/02_applicative.ts:15
↓ 3 callers
Method
of
(val: TVal)
chapters/chapter_07_category_theory/04_either.ts:27
↓ 3 callers
Function
trimAndCapitalize
(s: string)
chapters/chapter_06_fp_techniques/01_composition.ts:6
↓ 2 callers
Method
_changeBy
(val: number)
chapters/chapter_05_closures_and_prototypes/05_closures.ts:41
↓ 2 callers
Method
add
(listener: Listener<T>)
chapters/chapter_09_functional_reactive_programming/01_observer.ts:17
↓ 2 callers
Function
addDelay
(msg: string, ms: number)
chapters/chapter_01_fp_fundamentals/09_higher_order_functions.ts:3
↓ 2 callers
Function
bar
(cb: () => void)
chapters/chapter_03_mastering_async_programming/01_callbacks_and_higher_order_functions.ts:7
↓ 2 callers
Function
compose
( f: (x: T2) => T3, g: (x: T1) => T2)
chapters/chapter_06_fp_techniques/03_currying.ts:37
↓ 2 callers
Function
compose
( f: (x: T2) => T3, g: (x: T1) => T2)
chapters/chapter_06_fp_techniques/04_strinct_bind.ts:12
↓ 2 callers
Function
composeLens
( ab: Lens<A, B>, bc: Lens<B, C> )
chapters/chapter_08_optics_immutability_laziness/02_lenses.ts:87
↓ 2 callers
Function
composeMany
(...functions: Array<(arg: T) => T>)
chapters/chapter_06_fp_techniques/01_composition.ts:74
↓ 2 callers
Function
composePrism
(ab: Prism<A, B>, bc: Prism<B, C>)
chapters/chapter_08_optics_immutability_laziness/03_prisms.ts:49
↓ 2 callers
Function
curry2
(fn: (a: T1, b: T2) => T3)
chapters/chapter_06_fp_techniques/03_currying.ts:3
↓ 2 callers
Method
decrement
()
chapters/chapter_05_closures_and_prototypes/05_closures.ts:33
↓ 2 callers
Function
doSomethingAsync
(arr: number[])
chapters/chapter_03_mastering_async_programming/04_promises.ts:24
↓ 2 callers
Function
doSomethingAsync
(arr: number[])
chapters/chapter_03_mastering_async_programming/07_async_await.ts:16
↓ 2 callers
Function
doSomethingElseAsync
(arr: number[])
chapters/chapter_03_mastering_async_programming/07_async_await.ts:32
↓ 2 callers
Function
doSomethingMoreAsync
(arr: number[])
chapters/chapter_03_mastering_async_programming/07_async_await.ts:48
↓ 2 callers
Function
filter
(f: (item: T) => boolean)
chapters/chapter_08_optics_immutability_laziness/04_laziness.ts:52
↓ 2 callers
Function
findUserAgeByName
(users: User[], name: string)
chapters/chapter_01_fp_fundamentals/02_side_effects.ts:8
↓ 2 callers
Function
foo
()
chapters/chapter_03_mastering_async_programming/06_generators.ts:3
↓ 2 callers
Function
foo
(a: number)
chapters/chapter_04_the_event_loop_and_this_operator/02_event_loop.ts:3
↓ 2 callers
Function
g2
()
chapters/chapter_03_mastering_async_programming/10_delegating_to_a_generator.ts:9
↓ 2 callers
Method
greet
()
chapters/chapter_03_mastering_async_programming/02_arrow_functions.ts:8
↓ 2 callers
Method
greetDelay
(time: number)
chapters/chapter_03_mastering_async_programming/02_arrow_functions.ts:30
↓ 2 callers
Function
isEligibleToVote
(person: Person)
chapters/chapter_06_fp_techniques/06_point_fee_style.ts:14
↓ 2 callers
Function
isIndexPage
()
chapters/chapter_01_fp_fundamentals/01_pure_vs_inpure.ts:2
↓ 2 callers
Method
isNothing
()
chapters/chapter_07_category_theory/05_monads.ts:39
↓ 2 callers
Function
iterateOnMultiples
(arr: number[], divisor: number)
chapters/chapter_09_functional_reactive_programming/02_iterator.ts:3
↓ 2 callers
Function
makeCounter
()
chapters/chapter_05_closures_and_prototypes/05_closures.ts:144
↓ 2 callers
Method
of
(val: TVal)
chapters/chapter_07_category_theory/02_applicative.ts:5
↓ 2 callers
Function
safeFindUserAgeByName
(users: User[], name: string)
chapters/chapter_01_fp_fundamentals/02_side_effects.ts:34
↓ 1 callers
Method
add
(newItem: T)
chapters/chapter_01_fp_fundamentals/04_immutability.ts:11
↓ 1 callers
Function
addMany
(...args: number[])
chapters/chapter_01_fp_fundamentals/03_declarative_vs_imperative.ts:54
↓ 1 callers
Method
ap
(c: Container<(val: T) => TMap>)
chapters/chapter_07_category_theory/02_applicative.ts:19
↓ 1 callers
Function
both
( funcA: (a: T1) => boolean, funcB: (a: T1) => boolean )
chapters/chapter_06_fp_techniques/06_point_fee_style.ts:31
↓ 1 callers
Function
capitalize
(s: string)
chapters/chapter_06_fp_techniques/01_composition.ts:4
↓ 1 callers
Function
compose3
( f: (x: T3) => T4, g: (x: T2) => T3, h: (x: T1) => T2 )
chapters/chapter_06_fp_techniques/01_composition.ts:48
↓ 1 callers
Function
curry3
(fn: (a: T1, b: T2, c: T3) => T4)
chapters/chapter_06_fp_techniques/03_currying.ts:43
↓ 1 callers
Function
curry3
(fn: (a: T1, b: T2, c: T3) => T4)
chapters/chapter_06_fp_techniques/05_pipes.ts:7
↓ 1 callers
Function
div
(a: number, b: number)
chapters/chapter_01_fp_fundamentals/03_declarative_vs_imperative.ts:55
↓ 1 callers
Function
division
(a: number, b: number)
chapters/chapter_01_fp_fundamentals/03_declarative_vs_imperative.ts:41
↓ 1 callers
Function
doSomethingAsync
( arr: number[], success: (arr: number[]) => void, error: (e: Error) => void )
chapters/chapter_03_mastering_async_programming/03_callbackhell.ts:3
↓ 1 callers
Function
doSomethingElseAsync
( arr: number[], success: (arr: number[]) => void, error: (e: Error) => void )
chapters/chapter_03_mastering_async_programming/03_callbackhell.ts:21
↓ 1 callers
Function
doSomethingElseAsync
(arr: number[])
chapters/chapter_03_mastering_async_programming/04_promises.ts:40
↓ 1 callers
Function
doSomethingMoreAsync
( arr: number[], success: (arr: number[]) => void, error: (e: Error) => void )
chapters/chapter_03_mastering_async_programming/03_callbackhell.ts:39
↓ 1 callers
Function
doSomethingMoreAsync
(arr: number[])
chapters/chapter_03_mastering_async_programming/04_promises.ts:56
↓ 1 callers
Function
either
( funcA: (a: T1) => boolean, funcB: (a: T1) => boolean )
chapters/chapter_06_fp_techniques/06_point_fee_style.ts:26
↓ 1 callers
Function
factorial
(n: number)
chapters/chapter_06_fp_techniques/07_recursion.ts:3
↓ 1 callers
Function
fetchNews
()
chapters/chapter_07_category_theory/04_either.ts:69
↓ 1 callers
Function
fetchNews
()
chapters/chapter_07_category_theory/03_maybe.ts:60
↓ 1 callers
Function
find
(f: (item: T) => boolean)
chapters/chapter_08_optics_immutability_laziness/04_laziness.ts:62
↓ 1 callers
Function
foo
()
chapters/chapter_03_mastering_async_programming/04_promises.ts:3
↓ 1 callers
Function
g1
()
chapters/chapter_03_mastering_async_programming/09_for_await_of.ts:3
↓ 1 callers
Function
g1
()
chapters/chapter_03_mastering_async_programming/10_delegating_to_a_generator.ts:3
↓ 1 callers
Function
g1
()
chapters/chapter_03_mastering_async_programming/08_asynchronous_generators.ts:14
↓ 1 callers
Method
getAge
()
chapters/chapter_04_the_event_loop_and_this_operator/03_this_operator.ts:52
↓ 1 callers
Method
greet
(city: string, country: string)
chapters/chapter_04_the_event_loop_and_this_operator/04_call_bind_apply.ts:13
↓ 1 callers
Method
greet
()
chapters/chapter_05_closures_and_prototypes/03_prototypal_inheritance.ts:14
↓ 1 callers
Function
greetNamed
(name: string)
chapters/chapter_02_mastering_functions/03_func_declaration_expressions.ts:6
↓ 1 callers
Function
greetUnnamed
(name: string)
chapters/chapter_02_mastering_functions/03_func_declaration_expressions.ts:10
↓ 1 callers
Function
htmlEscape
(literals: TemplateStringsArray, ...placeholders: any[])
chapters/chapter_02_mastering_functions/11_tag_function.ts:11
↓ 1 callers
Method
increment
()
chapters/chapter_02_mastering_functions/10_iife.ts:48
↓ 1 callers
Function
invokeTaskAsync
()
chapters/chapter_03_mastering_async_programming/07_async_await.ts:64
↓ 1 callers
Function
isCitizen
(person: Person)
chapters/chapter_06_fp_techniques/06_point_fee_style.ts:13
↓ 1 callers
Method
isNothing
()
chapters/chapter_07_category_theory/03_maybe.ts:17
↓ 1 callers
Function
isOver18
(person: Person)
chapters/chapter_06_fp_techniques/06_point_fee_style.ts:12
↓ 1 callers
Function
lazyFind
(arr: T[], filter: (i: T) => boolean)
chapters/chapter_01_fp_fundamentals/10_lazyness.ts:3
↓ 1 callers
Function
lens
( getter: Prop<T1, K>, setter: Assoc<T1, K>, )
chapters/chapter_08_optics_immutability_laziness/02_lenses.ts:200
↓ 1 callers
Function
makeArmy
()
chapters/chapter_05_closures_and_prototypes/05_closures.ts:3
↓ 1 callers
Method
map
(fn: (val: T) => TMap)
chapters/chapter_07_category_theory/01_functors.ts:11
↓ 1 callers
Function
mapProp
(k: keyof T, arr: T[])
chapters/chapter_01_fp_fundamentals/03_declarative_vs_imperative.ts:56
next →
1–100 of 217, ranked by callers