自分の使い方をまとめる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------------- | |
3.25 PoBs [Always re-pull PoBs right before league start to have the most updated version] | |
---------------------------------------------- | |
Aurabot: | |
https://pobb.in/JDvQLXM_0-TW | |
Spark Inquitor carry: | |
https://pobb.in/rc2V3e82Beji | |
Storm Brand Inquisitor carry: |
The other day, I saw Harold Cooper's One-line tree in Python via autovivication, and wondered if the same thing was possible in Groovy.
The answer is yes! But you need to define the variable tree
before you can assign it to the self-referential withDefault
closure, hence with Groovy, it's a two-line solution ;-)
Anyway, given:
def tree = { [:].withDefault{ owner.call() } }
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03"> | |
<CstmrCdtTrfInitn> | |
<GrpHdr> | |
<MsgId>ABC/090928/CCT001</MsgId> | |
<CreDtTm>2009-09-28T14:07:00</CreDtTm> | |
<NbOfTxs>3</NbOfTxs> | |
<CtrlSum>11500000</CtrlSum> | |
<InitgPty> | |
<Nm>ABC Corporation</Nm> |