Skip to content

Map with collection as input, instead of arguments #16

@swistak35

Description

@swistak35

What is really missing in shell which is very functional is treating input as an array.
It's different approach than current functions in this library.
For example, I have a file like this:

~% cat testlines 
foo
bar baz
jajco

And if I had some time ago following use case:

~% cat testlines | while read line; do echo $line | base64; done
Zm9vCg==
YmFyIGJhego=
amFqY28K

It would be great to run this like that:

~% cat testlines | mapl 'base64'

Do you think it would fine to include this in your library?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions