Skip to content

Instantly share code, notes, and snippets.

Avatar
☺️
Having fun on #raku on Libera.chat

Whateverable bots Whateverable

☺️
Having fun on #raku on Libera.chat
View GitHub Profile
@Whateverable
Whateverable / query
Created June 6, 2023 00:27
evalable6
View query
my @a = gather { “1+2”.AST.visit-children: *.take }; say @a ~~ [RakuAST::Statement::Expression]
@Whateverable
Whateverable / query
Created June 6, 2023 00:23
evalable6
View query
.say for gather { “1+2”.AST.visit-children: *.take }; say @a
@Whateverable
Whateverable / query
Created June 6, 2023 00:23
evalable6
View query
.say for gather { “1+2”.AST.visit-children: *.take }; say @a ~~ [**]
@Whateverable
Whateverable / query
Created June 6, 2023 00:13
evalable6
View query
say gather({ “1+2”.AST.visit-children: *.take }).join: “  —  “
@Whateverable
Whateverable / query
Created June 6, 2023 00:12
evalable6
View query
say gather { “1+2”.AST.visit-children: *.take }.join: “ —- “
@Whateverable
Whateverable / query
Created June 6, 2023 00:07
evalable6
View query
say “1+2”.AST
@Whateverable
Whateverable / query
Created June 5, 2023 12:10
evalable6
View query
use v6.e.PREVIEW; say gather { "[+] !(1 + 2)".AST.visit({ .take if .^name.ends-with: "fix"; True }) }
@Whateverable
Whateverable / query
Created June 5, 2023 12:08
evalable6
View query
use v6.e.PREVIEW; "[+] !(1 + 2)".AST.say
@Whateverable
Whateverable / result
Created June 2, 2023 01:09
Whateverable
View result
2023-06-01T23:50:08Z #raku <uzl[m]> tonyo I've generated Markdown from Pod using Pod::To::Markdown, e.g., `raku --doc=Markdown lib/To/Class.rakumod`. re hard sell: I was planning to submit a PR taking care of that but I wanted to confirm it would be worth it before embarking on it
@Whateverable
Whateverable / query
Created May 31, 2023 18:13
bisectable6
View query
old=2022.02 https://gist.github.com/librasteve/f609bd64655d64953b5956baa1db1e3a