ifnotin

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

README

IfNotIn

Overview

Description

Given 2 arrays returns the new array with the elements of the first array only if they do not appear in the second array.

Implementation details

I create a map to hold the "in" array (arr1) I then loop through arr0 and see if the value of arr0 is not in the map.

Compliance to Spec

Rough level of compliance

100%

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Input

type Input struct {
	Arr0 []interface{} `md:"arr0"`
	Arr1 []interface{} `md:"arr1"`
}

func (*Input) FromMap

func (i *Input) FromMap(values map[string]interface{}) error

type Operation

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

func (*Operation) Eval

func (a *Operation) Eval(inputs map[string]interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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