apply_list: Apply list input to a worker

Description Usage Arguments Examples

View source: R/util.R

Description

Apply list input to a worker

Usage

1

Arguments

input

a list of characters

worker

a worker

Examples

1
2
3
cutter = worker()
apply_list(list("this is test", "that is not test"), cutter)
apply_list(list("this is test", list("that is not test","ab c")), cutter)

Example output

Loading required package: jiebaRD
[[1]]
[1] "this" "is"   "test"

[[2]]
[1] "that" "is"   "not"  "test"

[[1]]
[1] "this" "is"   "test"

[[2]]
[[2]][[1]]
[1] "that" "is"   "not"  "test"

[[2]][[2]]
[1] "ab" "c" 

jiebaR documentation built on Dec. 16, 2019, 1:19 a.m.