blob: 304a76285fb68cfcc474292fc67fcc4b41341ad6 (
plain) (
tree)
|
|
discard """
output: '''
to be, or not to be'''
joinable: false
"""
import sequtils, sugar
let m = @[proc (s: string): string = "to " & s, proc (s: string): string = "not to " & s]
var l = m.mapIt(capture([it], proc (s: string): string = it(s)))
let r = l.mapIt(it("be"))
echo r[0] & ", or " & r[1]
|