corefns

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package corefns is a placeholder while the lginterop-driven direct-call path is being wired up. It currently exports just `Seq` so the dynamic native-direct registry plumbing (registry, pipeline-seeding, lower-go emit) has at least one entry to exercise.

The long-term shape is: corefns hosts real Go top-level funcs with typed Go signatures (not the vm.Value-only shape used here). The metadata the registry holds is whatever lginterop's go/types pass extracts — typed params, typed results, variadic, &c. lower-go reads the typed signature and emits per-arg coercion + direct call, mirroring what vm.NativeFnType.Box already does reflectively at the boundary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count added in v1.11.0

func Count(v vm.Value) (vm.Value, error)

Count mirrors the clojure.core/count builtin (pkg/rt/lang.go).

func First added in v1.11.0

func First(v vm.Value) (vm.Value, error)

First mirrors the clojure.core/first builtin (pkg/rt/lang.go).

func Next added in v1.11.0

func Next(v vm.Value) (vm.Value, error)

Next mirrors the clojure.core/next builtin (pkg/rt/lang.go).

func RegisterGeneratedPrimitives added in v1.13.0

func RegisterGeneratedPrimitives()

func Rest added in v1.11.0

func Rest(v vm.Value) (vm.Value, error)

Rest mirrors the clojure.core/rest builtin (pkg/rt/lang.go).

func Second added in v1.11.0

func Second(v vm.Value) (vm.Value, error)

Second mirrors the clojure.core/second builtin (pkg/rt/lang.go).

func Seq

func Seq(v vm.Value) (vm.Value, error)

Seq returns a seq of coll, or nil for empty/nil colls. Mirrors the closure body previously inlined in pkg/rt/lang.go around the `seq` registration.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL