Add into to prelude
#51
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "add-into"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
To get advent of code to work I needed type casting and couldn't find any in the prelude. I looked around for a simple implementation and stole nushell's
into5 | into stringis"5""33 | into numberis33It does booleans too and throws an error if it can't convert the given value.
BUT
Maybe it would be better to just copy what js does
string 4or
number "34"That is pretty clear and might be better
cc @defunkt
I like
string 4andnumber "34!added
stringnumberandbooleanin59b92714d2Pull request closed