cell

package
v0.0.0-...-9c3d4f4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

mae.earth/pkg/sexpr/cell/cell.go

mae.earth/pkg/sexpr/cell/functions.go

Index

Constants

View Source
const (
	Empty = ""
)

Variables

This section is empty.

Functions

func Compact

func Compact(c *Cell) string

Compact

func Count

func Count(h *Cell) int

Count

Types

type Cell

type Cell struct {
	// contains filtered or unexported fields
}

Cell struct for placing two atoms into

func Append

func Append(a, b *Cell) *Cell

Append

func Cons

func Cons(a, b Stringer) *Cell

Cons

func First

func First(c *Cell) *Cell

First

func Last

func Last(h *Cell) *Cell

Last

func List

func List(atoms ...Stringer) *Cell

List

func New

func New(h, t Stringer) *Cell

New

func Open

func Open(cell *Cell) *Cell

Open

func Rest

func Rest(h *Cell) *Cell

Rest

func (*Cell) Copy

func (c *Cell) Copy() *Cell

Copy not a deep copy of contents

func (*Cell) Get

func (c *Cell) Get() interface{}

Get the user information that is set

func (*Cell) IsEmpty

func (c *Cell) IsEmpty() bool

IsEmpty

func (*Cell) IsList

func (c *Cell) IsList() bool

IsList

func (*Cell) IsValue

func (c *Cell) IsValue() bool

IsValue

func (*Cell) List

func (c *Cell) List() *Cell

List

func (*Cell) Next

func (c *Cell) Next() *Cell

Next

func (*Cell) SValue

func (c *Cell) SValue() string

SValue

func (*Cell) Set

func (c *Cell) Set(u interface{}) *Cell

Set the user information

func (*Cell) String

func (c *Cell) String() string

String

func (*Cell) ToSValue

func (c *Cell) ToSValue() (string, bool)

ToSValue

func (*Cell) Value

func (c *Cell) Value() Stringer

Value

type Stringer

type Stringer interface {
	String() string
}

Stringer

Jump to

Keyboard shortcuts

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