Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloe-lang/cloe
/ functions
Functions
860 in github.com/cloe-lang/cloe
⨍
Functions
860
◇
Types & classes
71
↓ 417 callers
Function
PApp
PApp is not PPap.
src/lib/core/thunk.go:47
↓ 381 callers
Function
NewNumber
NewNumber creates a thunk containing a number value.
src/lib/core/number.go:21
↓ 248 callers
Function
NewString
NewString creates a string in the language from one in Go.
src/lib/core/string.go:20
↓ 237 callers
Function
EvalPure
EvalPure evaluates a pure value.
src/lib/core/value.go:85
↓ 209 callers
Function
NewList
NewList creates a list from its elements.
src/lib/core/list.go:25
↓ 131 callers
Method
Equal
Equal checks equality.
src/lib/core/nil.go:34
↓ 80 callers
Function
NewSignature
NewSignature defines a new Signature.
src/lib/core/signature.go:10
↓ 79 callers
Function
NewPositionalArgument
NewPositionalArgument creates a PositionalArgument.
src/lib/core/positional_argument.go:11
↓ 70 callers
Function
NewArguments
NewArguments creates a new Arguments.
src/lib/core/arguments.go:14
↓ 68 callers
Function
NewGoInfo
NewGoInfo creates a Info of debug information about Go source.
src/lib/debug/info.go:21
↓ 56 callers
Function
NewLazyFunction
NewLazyFunction creates a function whose arguments are evaluated lazily.
src/lib/core/function.go:22
↓ 52 callers
Method
Name
Name returns a variable name defined by the let-variable statement.
src/lib/ast/let_var.go:17
↓ 44 callers
Function
app
(f interface{}, args ...interface{})
src/lib/desugar/match/util.go:8
↓ 43 callers
Function
App
App creates a thunk applying a function to arguments.
src/lib/core/thunk.go:29
↓ 43 callers
Function
NewDictionary
NewDictionary creates a dictionary from keys of values and their corresponding values of thunks.
src/lib/core/dictionary.go:33
↓ 40 callers
Function
EvalList
EvalList evaluates a thunk which is expected to be a list value.
src/lib/core/value.go:32
↓ 38 callers
Function
NewDefFunction
NewDefFunction creates a DefFunction from its function name, signature, internal let statements, and a body expression.
src/lib/ast/def_function.go:22
↓ 36 callers
Function
NewKeywordArgument
NewKeywordArgument creates a KeywordArgument from a bound name and its value.
src/lib/core/keyword_argument.go:10
↓ 36 callers
Function
NewLetVar
NewLetVar creates a LetVar from a variable name and its value of an expression.
src/lib/ast/let_var.go:12
↓ 36 callers
Method
Value
Value returns a value which will be matched with patterns in a match expression.
src/lib/ast/match.go:24
↓ 35 callers
Function
NewSignature
NewSignature creates a Signature from {positional, keyword} x {required, optional} arguments and a positional rest argument and a keyword rest argumen
src/lib/ast/signature.go:12
↓ 34 callers
Method
First
First returns a first element in a list.
src/lib/core/list.go:275
↓ 34 callers
Method
Rest
Rest returns elements in a list except the first one.
src/lib/core/list.go:284
↓ 32 callers
Method
Empty
Empty returns true if the list is empty.
src/lib/core/list.go:293
↓ 32 callers
Method
Lets
Lets returns let statements contained in the def-function statement. Returned values should be LetVar or DefFunction.
src/lib/ast/def_function.go:38
↓ 28 callers
Function
NewPApp
NewPApp don't creates PPap but PApp.
src/lib/ast/app.go:22
↓ 27 callers
Method
DebugInfo
DebugInfo returns debug information of an application.
src/lib/ast/app.go:43
↓ 27 callers
Method
Name
Name returns a name of an error.
src/lib/core/error.go:50
↓ 27 callers
Function
testEqual
(t1, t2 Value)
src/lib/core/interfaces_test.go:9
↓ 26 callers
Function
EvalImpure
EvalImpure evaluates an impure function call.
src/lib/core/value.go:97
↓ 26 callers
Method
Positionals
Positionals returns positional required arguments of a signature.
src/lib/ast/signature.go:20
↓ 25 callers
Method
String
String creates a parser parsing a string.
src/lib/parse/comb/combinator.go:27
↓ 24 callers
Function
NewState
NewState creates a parser state.
src/lib/parse/comb/state.go:12
↓ 24 callers
Function
newStateWithoutFile
(source string)
src/lib/parse/parse_test.go:292
↓ 23 callers
Function
NewMatchCase
NewMatchCase creates a case in a match expression.
src/lib/ast/match_case.go:12
↓ 22 callers
Method
Signature
Signature returns a signature of a function defined by the def-function statement.
src/lib/ast/def_function.go:32
↓ 20 callers
Method
Arguments
Arguments returns arguments of an application.
src/lib/ast/app.go:38
↓ 20 callers
Method
Body
Body returns a body expression of a function defined by the def-function statement.
src/lib/ast/def_function.go:43
↓ 19 callers
Method
App
App applies a function to results of a given parser.
src/lib/parse/comb/combinator.go:211
↓ 19 callers
Function
RunDaemons
RunDaemons runs daemons. The current implementation doesn't limit a number of spawn goroutines because it can lead to dead lock. However, it should be
src/lib/systemt/daemon.go:16
↓ 19 callers
Method
exhaust
(p comb.Parser)
src/lib/parse/parse.go:481
↓ 18 callers
Method
And
And creates a parser combining given parsers sequentially.
src/lib/parse/comb/combinator.go:152
↓ 18 callers
Function
Convert
Convert converts an AST with a given function. This function visits all expressions and statements at least.
src/lib/ast/util.go:9
↓ 17 callers
Function
EvalNumber
EvalNumber evaluates a thunk which is expected to be a number value.
src/lib/core/value.go:43
↓ 17 callers
Function
EvalString
EvalString evaluates a thunk which is expected to be a string value.
src/lib/core/value.go:54
↓ 17 callers
Method
Expr
Expr returns an expression of the effect.
src/lib/ast/effect.go:17
↓ 17 callers
Function
NewOptionalParameter
NewOptionalParameter creates an optional argument.
src/lib/core/optional_parameter.go:10
↓ 17 callers
Function
NewPositionalArguments
NewPositionalArguments creates an Arguments which consists of unexpanded positional arguments.
src/lib/core/arguments.go:32
↓ 17 callers
Method
Pattern
Pattern returns a pattern matched with a value of the let-match statement.
src/lib/ast/let_match.go:17
↓ 15 callers
Function
GenSym
GenSym creates a unique symbol as a string from its components.
src/lib/gensym/gensym.go:11
↓ 15 callers
Method
Many
Many creates a parser of more than or equal to 0 reptation of a given parser.
src/lib/parse/comb/combinator.go:91
↓ 15 callers
Function
TypeError
TypeError creates an error value for an invalid type.
src/lib/core/error.go:77
↓ 15 callers
Method
expression
()
src/lib/parse/parse.go:235
↓ 14 callers
Method
Function
Function returns a function of an application.
src/lib/ast/app.go:33
↓ 14 callers
Function
newNames
(ss ...string)
src/lib/desugar/names.go:7
↓ 13 callers
Function
NewArguments
NewArguments creates arguments.
src/lib/ast/arguments.go:14
↓ 13 callers
Function
NewError
NewError creates an error value from its name and a formatted message.
src/lib/core/error.go:23
↓ 12 callers
Method
Expanded
Expanded returns true when the effect is expanded.
src/lib/ast/effect.go:22
↓ 12 callers
Function
NewAnonymousFunction
NewAnonymousFunction creates a anonymous function.
src/lib/ast/anonymous_function.go:13
↓ 12 callers
Function
NewMatch
NewMatch creates a match expression.
src/lib/ast/match.go:15
↓ 12 callers
Method
Or
Or creates a selectional parser from given parsers.
src/lib/parse/comb/combinator.go:130
↓ 12 callers
Function
StrictPrepend
StrictPrepend is a strict version of the Prepend function.
src/lib/core/list.go:49
↓ 12 callers
Method
get
(s string)
src/lib/compile/environment.go:25
↓ 12 callers
Method
identifier
()
src/lib/parse/parse.go:406
↓ 12 callers
Method
strippedString
(str string)
src/lib/parse/parse.go:477
↓ 11 callers
Method
Cases
Cases returns pairs of a pattern and corrensponding value in a match expression.
src/lib/ast/match.go:29
↓ 11 callers
Method
Keywords
Keywords returns keyword optional arguments of a signature.
src/lib/ast/signature.go:30
↓ 11 callers
Function
NewApp
NewApp creates an App from a function and arguments with debug information.
src/lib/ast/app.go:17
↓ 11 callers
Function
builtinsEnvironment
()
src/lib/compile/builtins.go:81
↓ 11 callers
Function
cons
(t1, t2 Value)
src/lib/core/list.go:57
↓ 10 callers
Function
NewPositionalArgument
NewPositionalArgument creates a positional argument.
src/lib/ast/positional_argument.go:12
↓ 10 callers
Function
StrictDump
StrictDump is a variant of Dump which evaluates input strictly.
src/lib/core/util.go:25
↓ 10 callers
Method
list
(ps ...comb.Parser)
src/lib/parse/parse.go:440
↓ 10 callers
Method
set
(s string, t core.Value)
src/lib/compile/environment.go:21
↓ 9 callers
Method
Char
Char creates a parser parsing a character.
src/lib/parse/comb/combinator.go:9
↓ 9 callers
Method
Maybe
Maybe creates a parser which runs a given parser or parses nothing when it fails.
src/lib/parse/comb/combinator.go:242
↓ 9 callers
Function
NewMutualRecursion
NewMutualRecursion creates a mutual recursion node from mutually-recursive functions.
src/lib/ast/mutual_recursion.go:18
↓ 9 callers
Method
currentRune
()
src/lib/parse/comb/state.go:20
↓ 9 callers
Function
generateCopyBenchmark
(v Value)
src/lib/core/value_test.go:48
↓ 9 callers
Method
merge
(...Value)
src/lib/core/collection.go:9
↓ 8 callers
Function
NewEffect
NewEffect creates an effect.
src/lib/compile/effect.go:12
↓ 8 callers
Function
NewKeywordArgument
NewKeywordArgument creates a keyword argument from a bound name and its value.
src/lib/ast/keyword_argument.go:12
↓ 8 callers
Function
NewSwitchCase
NewSwitchCase creates a case in a switch expression.
src/lib/ast/switch_case.go:12
↓ 8 callers
Function
ReturnIfEmptyList
ReturnIfEmptyList returns true if a given list is empty, or false otherwise.
src/lib/core/list.go:298
↓ 8 callers
Function
checkIndex
(v Value)
src/lib/core/list.go:181
↓ 8 callers
Function
newEnvironment
(fallback func(string) (core.Value, error))
src/lib/compile/environment.go:14
↓ 7 callers
Function
Daemonize
Daemonize daemonizes a function running it in a goroutine.
src/lib/systemt/daemon.go:8
↓ 7 callers
Method
Error
Error is implemented for error built-in interface.
src/lib/core/error.go:67
↓ 7 callers
Function
EvalBoolean
EvalBoolean evaluates a thunk which is expected to be a boolean value.
src/lib/core/value.go:10
↓ 7 callers
Function
NewEffectFunction
NewEffectFunction creates a effect function which returns an effect value.
src/lib/core/function.go:49
↓ 7 callers
Method
Prefix
Prefix creates a parser with a prefix parser and content parser and returns the latter's result.
src/lib/parse/comb/combinator.go:74
↓ 7 callers
Function
compare
(x1, x2 interface{})
src/lib/core/interfaces.go:36
↓ 7 callers
Function
evalCollection
(v Value)
src/lib/core/value.go:64
↓ 7 callers
Function
httpError
(err error)
src/lib/modules/http/error.go:5
↓ 7 callers
Method
strip
(p comb.Parser)
src/lib/parse/parse.go:462
↓ 6 callers
Function
Compile
Compile compiles a main module of a path into effects of thunks.
src/lib/compile/compile.go:14
↓ 6 callers
Method
Many1
Many1 creates a parser of more than 0 reptation of a given parser.
src/lib/parse/comb/combinator.go:104
↓ 6 callers
Function
NewBoolean
NewBoolean converts a Go boolean value into BooleanType.
src/lib/core/boolean.go:28
↓ 6 callers
Function
NewLetMatch
NewLetMatch creates a let-match statement from a pattern and an expression.
src/lib/ast/let_match.go:12
↓ 6 callers
Function
NewStrictFunction
NewStrictFunction creates a function whose arguments are evaluated strictly.
src/lib/core/function.go:35
next →
1–100 of 860, ranked by callers